From 11c2440ebd9affad0d28c446721a508125da484e Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Sun, 26 Sep 2021 18:06:58 +0200 Subject: [PATCH] rework --- docker/nginx/Dockerfile | 3 +-- docker/nginx/logrotate | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile index 60ce4106..81cf6766 100644 --- a/docker/nginx/Dockerfile +++ b/docker/nginx/Dockerfile @@ -11,8 +11,7 @@ RUN luarocks install lua-resty-http && \ COPY mo ./ COPY conf.d /etc/nginx/conf.d COPY conf.d.templates /etc/nginx/conf.d.templates - -COPY ./logrotate /etc/logrotate.d/nginx +COPY logrotate /etc/logrotate.d/nginx CMD [ "bash", "-c", \ "./mo < /etc/nginx/conf.d.templates/server.account.conf > /etc/nginx/conf.d/server.account.conf ; \ diff --git a/docker/nginx/logrotate b/docker/nginx/logrotate index b2ddcd76..fa81d91b 100644 --- a/docker/nginx/logrotate +++ b/docker/nginx/logrotate @@ -5,9 +5,9 @@ missingok notifempty nocompress - create 640 root root + create 644 root root sharedscripts postrotate - openresty -s reopen + /usr/local/openresty/bin/openresty -s reopen endscript } \ No newline at end of file