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:
parent
947ca7126f
commit
966b0a1a33
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue