From 6970c494b9992de81980f0a8eb8d838b1036149e Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 20 Dec 2022 15:17:11 +0100 Subject: [PATCH] cleanup --- scripts/upgrade | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b3a26e3..8dbe28c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -149,33 +149,6 @@ ynh_add_nginx_config #================================================= # SPECIFIC UPGRADE #================================================= -# ... -#================================================= - -#================================================= -# UPDATE A CONFIG FILE -#================================================= -ynh_script_progression --message="Updating a configuration file..." --weight=1 - -### Same as during install -### -### The file will automatically be backed-up if it's found to be manually modified (because -### ynh_add_config keeps track of the file's checksum) - -ynh_add_config --template="some_config_file" --destination="$final_path/some_config_file" - -# FIXME: this should be handled by the core in the future -# You may need to use chmod 600 instead of 400, -# for example if the app is expected to be able to modify its own config -chmod 400 "$final_path/some_config_file" -chown $app:$app "$final_path/some_config_file" - -### For more complex cases where you want to replace stuff using regexes, -### you shoud rely on ynh_replace_string (which is basically a wrapper for sed) -### When doing so, you also need to manually call ynh_store_file_checksum -### -### ynh_replace_string --match_string="match_string" --replace_string="replace_string" --target_file="$final_path/some_config_file" -### ynh_store_file_checksum --file="$final_path/some_config_file" #================================================= # SETUP SYSTEMD