From 2312696340d824922739f6e9decd9ea58ef701ee Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 17:41:10 +0200 Subject: [PATCH] NGINX CONFIGURATION --- scripts/upgrade | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0c31a99..e711af9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,7 +39,12 @@ ynh_print_info "Upgrading dependencies..." sudo apt-get update -qq sudo apt-get upgrade syncthing -y -# Update Nginx configuration + +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_print_info "Upgrading nginx web server configuration..." + sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@PORTTOCHANGE@$GUIPORT@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/syncthing.conf