From 23c080814d34f895a8be081ccf98a6e94adaf159 Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Wed, 23 Dec 2020 15:30:37 +0100 Subject: [PATCH] Fix --- scripts/change_url | 14 +++++++++----- scripts/remove | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index cc25876..ca34665 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -29,11 +29,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) - -# Add settings here as needed by your application -#db_name=$(ynh_app_setting_get --app=$app --key=db_name) -#db_user=$db_name -#db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) +port=$(ynh_app_setting_get --app=$app --key=port) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP @@ -131,6 +127,14 @@ ynh_script_progression --message="Reloading nginx web server..." --time --weight ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# STORE SETTINGS +#================================================= +ynh_script_progression --message="Storing settings..." --weight=2 + +ynh_app_setting_set --app=$app --key=domain --value=$new_domain +ynh_app_setting_set --app=$app --key=path --value=$new_path + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/remove b/scripts/remove index 0e357a2..957242f 100755 --- a/scripts/remove +++ b/scripts/remove @@ -75,6 +75,7 @@ ynh_script_progression --message="Removing logrotate configuration..." --weight= # Remove the app-specific logrotate config ynh_remove_logrotate +ynh_secure_remove --file="/var/log/$app" #================================================= # CLOSE A PORT