1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cheky_ynh.git synced 2024-09-03 18:16:00 +02:00

[enh] Add more comments in "upgrade" script

This commit is contained in:
Gofannon 2019-02-24 19:15:30 +01:00
parent 5d1fe4ec14
commit 50b2dc37a6

View file

@ -112,7 +112,9 @@ ynh_add_fpm_config
#ynh_store_file_checksum "$final_path/CONFIG_FILE" #ynh_store_file_checksum "$final_path/CONFIG_FILE"
# Needed so no manual operation has to be done by user while upgrading # 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 if [ -f "$final_path/var/config.ini" ]; then
# Change the existing version by the new one taken from the app manifest # 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" ynh_replace_string "^version =.*" "version = \"$upstream_version\"" "$final_path/var/config.ini"