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