From 842c9f6807734ad51d2ed5b60557cdd19760ca0e Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 12:24:32 +0300 Subject: [PATCH] upgrade nginx conf --- scripts/upgrade | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 32b60d8..f592d97 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) # admin=$(ynh_app_setting_get --app=$app --key=admin) final_path=$(ynh_app_setting_get --app=$app --key=final_path) +port=$(ynh_app_setting_get --app=$app --key=port) # language=$(ynh_app_setting_get --app=$app --key=language) # db_name=$(ynh_app_setting_get --app=$app --key=db_name) @@ -114,14 +115,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # INSTALL NODEJS #================================================= @@ -135,6 +128,14 @@ ynh_install_nodejs --nodejs_version=$nodejs_version ynh_use_nodejs +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # UPGRADE DEPENDENCIES #=================================================