From 45c0460c4f180193003abf51caf743ca77de0d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 16 Feb 2019 12:59:32 +0100 Subject: [PATCH] Store checksum for app.ini with INTERNAL_TOKEN value --- scripts/change_url | 4 ++++ scripts/install | 4 ++++ scripts/upgrade | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index a0d945c..64f6146 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -51,3 +51,7 @@ config_gitea # RELOAD services ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "systemd" -a restart + +# Store the checksum with the 'INTERNAL_TOKEN' value. +# Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed +ynh_store_file_checksum "$final_path/custom/conf/app.ini" diff --git a/scripts/install b/scripts/install index 4e62ea8..0821617 100644 --- a/scripts/install +++ b/scripts/install @@ -114,3 +114,7 @@ ynh_use_logrotate "/var/log/$app" # Reload services ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "systemd" + +# Store the checksum with the 'INTERNAL_TOKEN' value. +# Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed +ynh_store_file_checksum "$final_path/custom/conf/app.ini" diff --git a/scripts/upgrade b/scripts/upgrade index 2f626a8..5874ff2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,3 +111,7 @@ set_access_settings # Reload services ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "systemd" + +# Store the checksum with the 'INTERNAL_TOKEN' value. +# Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed +ynh_store_file_checksum "$final_path/custom/conf/app.ini"