From 7a1958ebd388b8543d33e2b3ecb86c82f68c4452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 6 Sep 2018 14:57:35 +0200 Subject: [PATCH] Fix nginx config --- scripts/install | 7 ++----- scripts/upgrade | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index fe798b1..8a3d1b3 100644 --- a/scripts/install +++ b/scripts/install @@ -98,12 +98,9 @@ then # uwsgi_param is only needed for non-root installation ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf" ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf" - - ynh_store_file_checksum "$finalnginxconf" -else - # add rewrite for alias_traversal protection - ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf" fi +ynh_store_file_checksum "$finalnginxconf" +systemctl reload nginx #================================================= # CREATE DEDICATED USER diff --git a/scripts/upgrade b/scripts/upgrade index f30f931..7f0cea9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,13 +118,9 @@ then # uwsgi_param is only needed for non-root installation ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf" ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf" - - ynh_store_file_checksum "$finalnginxconf" -else - # add rewrite for alias_traversal protection - ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf" fi - +ynh_store_file_checksum "$finalnginxconf" +systemctl reload nginx #================================================= # CREATE DEDICATED USER