From 50b2dc37a61baced249b9463caa8b7a9c77a271c Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Sun, 24 Feb 2019 19:15:30 +0100 Subject: [PATCH] [enh] Add more comments in "upgrade" script --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2812d0c..ce8c74d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -112,7 +112,9 @@ ynh_add_fpm_config #ynh_store_file_checksum "$final_path/CONFIG_FILE" # Needed so no manual operation has to be done by user while upgrading -# and no need to make "$final_path/version.php" writable +# If missing, Cheky is stuck in an "upgrade" state and the config file +# needs to be edited with latest version +# Also avoid to make file "$final_path/version.php" writable if [ -f "$final_path/var/config.ini" ]; then # Change the existing version by the new one taken from the app manifest ynh_replace_string "^version =.*" "version = \"$upstream_version\"" "$final_path/var/config.ini"