From 4dbb9dd31849aec00222d3166b75b2dff9a678cd Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 7 Oct 2020 02:52:17 +0200 Subject: [PATCH] [fix] Upgrade and restore --- scripts/restore | 8 ++++++++ scripts/upgrade | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 8032bda..9f98892 100644 --- a/scripts/restore +++ b/scripts/restore @@ -92,6 +92,14 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" # Recreate a dedicated php-fpm config ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies" +#================================================= +# RESTORE THE CRON FILE +#================================================= +ynh_script_progression --message="Restoring cron file..." --weight=1 + +# Restore the file first, so it can have a backup if different +ynh_restore_file --origin_path="/etc/cron.d/$app.conf" + #================================================= # SPECIFIC RESTORATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index ccca468..f48a280 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -159,7 +159,7 @@ fi #================================================= ynh_script_progression --message="Storing the config file checksum..." --weight=1 -config_file=$final_path/sites/default/settings.php +config_file=$final_path/app/sites/default/settings.php # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="$config_file"