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