From fb7e948fc72c8612219f2ac946b3240ee02d27bc Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 4 Apr 2023 22:44:19 +0200 Subject: [PATCH] Circumvent config.xml 'manually edited' warning --- scripts/install | 3 +++ scripts/restore | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 9 insertions(+) diff --git a/scripts/install b/scripts/install index bd90ec2..e7e6d07 100755 --- a/scripts/install +++ b/scripts/install @@ -173,6 +173,9 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Application started" +# FIXME Update config.xml checksum, for a mere file ending with or without a new line... +ynh_store_file_checksum --file="$data_path/config.xml" + #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/restore b/scripts/restore index a8ee45b..ba78e42 100755 --- a/scripts/restore +++ b/scripts/restore @@ -128,6 +128,9 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Application started" +# FIXME Update config.xml checksum, for a mere file ending with or without a new line... +ynh_store_file_checksum --file="$data_path/config.xml" + #================================================= # RESTORE THE LOGROTATE CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7912241..12c04b8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -167,6 +167,9 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Application started" +# FIXME Update config.xml checksum, for a mere file ending with or without a new line... +ynh_store_file_checksum --file="$data_path/config.xml" + #================================================= # RELOAD NGINX #=================================================