From 9e8b87220076ff0e090dff4ac049f9cf0162b7a4 Mon Sep 17 00:00:00 2001 From: Torma Kristof Date: Sun, 20 Sep 2020 03:35:04 +0200 Subject: [PATCH] change pid directory --- Dockerfile | 3 +-- startscript.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c962e8..01e7cef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,8 +44,7 @@ RUN apt-get update && \ ln -sf /dev/stderr /var/log/nginx/error.log && \ useradd -r -d /var/cache/nginx/ -s /sbin/nologin -U nginx && \ ln -sf /usr/lib64/nginx/modules /etc/nginx/modules && \ - chown -R nginx:users /etc/nginx && \ - mkdir /var/run/nginx + chown -R nginx:users /etc/nginx USER nginx:users diff --git a/startscript.sh b/startscript.sh index a4060f2..89c8905 100644 --- a/startscript.sh +++ b/startscript.sh @@ -66,4 +66,4 @@ if [[ -z "${STREAM_KEY}" ]]; then ;; esac -nginx +nginx -g 'pid /tmp/nginx.pid;'