1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-06-18 08:54:41 +02:00
parent 947ca7126f
commit 966b0a1a33
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -110,6 +110,18 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
ynh_add_fpm_config --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# UPGRADING THE APPLICATION
#=================================================
ynh_script_progression --message="Upgrading the application..." --weight=1
ynh_backup_if_checksum_is_different --file="$final_path/config.php"
exec_as $app php${phpversion} "$final_path/admin/cli/upgrade.php" --non-interactive
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$final_path/config.php"
#=================================================
# ACTIVATE LDAP SUPPORT
#=================================================