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