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;
|
||||
# pid /run/nginx.pid;
|
||||
user www-data;
|
||||
worker_processes auto;
|
||||
include /etc/nginx/modules-enabled/*.conf;
|
||||
|
||||
|
|
|
@ -26,14 +26,14 @@ if [[ ! -x /usr/sbin/nginx ]]; then
|
|||
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
|
||||
cp "$rel_path/service.conf" "/etc/systemd/system/nginx.service.d/service.conf"
|
||||
systemctl daemon-reload
|
||||
systemctl restart nginx
|
||||
fi
|
||||
# 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"
|
||||
# systemctl daemon-reload
|
||||
# systemctl restart nginx
|
||||
# fi
|
||||
|
||||
|
||||
cp "$rel_path/nginx.conf" /etc/nginx/
|
||||
|
|
Loading…
Reference in a new issue