From 68fabec9eef3fe20b56de2be6028a8a7daca30c0 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:15:33 +0100 Subject: [PATCH] removed rootless nginx-rp --- nginx-rp/nginx.conf | 3 +-- nginx-rp/setup.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/nginx-rp/nginx.conf b/nginx-rp/nginx.conf index 439cf65..5e0bc7e 100644 --- a/nginx-rp/nginx.conf +++ b/nginx-rp/nginx.conf @@ -1,5 +1,4 @@ -# user www-data; -# pid /run/nginx.pid; +user www-data; worker_processes auto; include /etc/nginx/modules-enabled/*.conf; diff --git a/nginx-rp/setup.sh b/nginx-rp/setup.sh index dc06528..1a1a2fe 100755 --- a/nginx-rp/setup.sh +++ b/nginx-rp/setup.sh @@ -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/