From b2ee203b744f6c004245b99fa855cfcb800e564e Mon Sep 17 00:00:00 2001 From: frju365 <19982894+frju365@users.noreply.github.com> Date: Sat, 30 Jun 2018 16:01:26 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4847e6e..2237fb6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,7 +21,6 @@ final_path=$(ynh_app_setting_get $app final_path) admin_name=$(ynh_app_setting_get $app admin_name) admin_pass=$(ynh_app_setting_get $app admin_pass) admin_email=$(ynh_app_setting_get $app admin_email) -db_pass=$(ynh_app_setting_get $app mysqlpwd) db_user=$(ynh_app_setting_get $app db_user) #================================================= @@ -90,6 +89,11 @@ ynh_secure_remove $final_path/public_html # Create a dedicated nginx config ynh_add_nginx_config +if [ "$path_url" != "/" ] +then + ynh_replace_string "^#sub_path_only" "" "/etc/nginx/conf.d/$domain.d/$app.conf" +fi +ynh_store_file_checksum "/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # CREATE DEDICATED USER