Fix nginx config

This commit is contained in:
Josué Tille 2018-09-06 14:57:35 +02:00
parent 04f94271b4
commit 7a1958ebd3
2 changed files with 4 additions and 11 deletions

View File

@ -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

View File

@ -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