From 69af8ddb9f9d4187816feaa8b53827d25e16c3b0 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 1 Jun 2019 07:14:07 +0200 Subject: [PATCH] backup config before upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 528b574..ffdfabb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,6 +109,7 @@ yunohost app addaccess $app -u $admin # MODIFY A CONFIG FILE #================================================= +ynh_backup_if_checksum_is_different --file="$final_path/config/config.php" cp -f "../conf/config.php.example" "$final_path/config/config.php" chmod 644 $final_path/config/config.php @@ -116,7 +117,6 @@ chmod 644 $final_path/config/config.php # STORE THE CONFIG FILE CHECKSUM #================================================= -ynh_backup_if_checksum_is_different --file="$final_path/config/config.php" # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="$final_path/config/config.php"