From a440fe9d75dcaf9a74cd9e262761cad4a8dcfb2b Mon Sep 17 00:00:00 2001 From: anmol Date: Tue, 12 Mar 2019 16:32:06 +0530 Subject: [PATCH] Fixed checksum in Upgrad script --- check_process | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/check_process b/check_process index 29c8259..1cbbf2b 100644 --- a/check_process +++ b/check_process @@ -10,7 +10,7 @@ setup_private=0 setup_public=1 upgrade=1 - upgrade=0 from_commit=CommitHash + upgrade=1 from_commit=1c018b9ed379e25d5bcab4bd27e9833feee9da68 backup_restore=1 multi_instance=1 incorrect_path=1 @@ -31,4 +31,4 @@ Level 10=0 ;;; Options Email=anmol@datamol.org - Notification=none + Notification=change diff --git a/scripts/upgrade b/scripts/upgrade index fee62b0..8e0da3b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -131,9 +131,9 @@ ynh_add_fpm_config ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it. -ynh_backup_if_checksum_is_different "$final_path/local.config.php" +ynh_backup_if_checksum_is_different "$final_path/config/local.config.php" # Recalculate and store the checksum of the file for the next upgrade. -ynh_store_file_checksum "$final_path/local.config.php" +ynh_store_file_checksum "$final_path/config/local.config.php" # Set up cron job ynh_replace_string "__YNH_WWW_PATH__" "$final_path" ../conf/poller-cron