From fcffcc4ab9733823b43b369c9567717591a1ff55 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 24 May 2020 23:06:38 +0200 Subject: [PATCH] add DB variables --- scripts/install | 2 +- scripts/upgrade | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 144104d..708c6ba 100644 --- a/scripts/install +++ b/scripts/install @@ -191,7 +191,7 @@ ynh_script_progression --message="Configuring SSOwat..." --weight=1 #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." --weight=2 +ynh_script_progression --message="Reloading Nginx web server..." --weight=2 ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/upgrade b/scripts/upgrade index 5861b01..b762fa7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -22,6 +22,11 @@ is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) +# Add settings here as needed by your application +db_name=$(ynh_app_setting_get --app=$app --key=db_name) +db_user=$(ynh_app_setting_get --app=$app --key=db_user) +db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) + #================================================= # CHECK VERSION #=================================================