removed rootless nginx-rp
This commit is contained in:
parent
de5e420a72
commit
68fabec9ee
2 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,4 @@
|
||||||
# user www-data;
|
user www-data;
|
||||||
# pid /run/nginx.pid;
|
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
include /etc/nginx/modules-enabled/*.conf;
|
include /etc/nginx/modules-enabled/*.conf;
|
||||||
|
|
||||||
|
|
|
@ -26,14 +26,14 @@ if [[ ! -x /usr/sbin/nginx ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
mkdir /etc/systemd/system/nginx.service.d 2> /dev/null
|
# mkdir /etc/systemd/system/nginx.service.d 2> /dev/null
|
||||||
|
|
||||||
|
|
||||||
if ! diff "$rel_path/service.conf" /etc/systemd/system/nginx.service.d/service.conf &> /dev/null; then
|
# if ! diff "$rel_path/service.conf" /etc/systemd/system/nginx.service.d/service.conf &> /dev/null; then
|
||||||
cp "$rel_path/service.conf" "/etc/systemd/system/nginx.service.d/service.conf"
|
# cp "$rel_path/service.conf" "/etc/systemd/system/nginx.service.d/service.conf"
|
||||||
systemctl daemon-reload
|
# systemctl daemon-reload
|
||||||
systemctl restart nginx
|
# systemctl restart nginx
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
|
|
||||||
cp "$rel_path/nginx.conf" /etc/nginx/
|
cp "$rel_path/nginx.conf" /etc/nginx/
|
||||||
|
|
Loading…
Reference in a new issue