[damned-lies/oscp] Grant also access to /var/log



commit e50c52b330cd6e51dd4ab01671ca18d6f58ff138
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Thu Mar 26 14:38:38 2020 +0100

    Grant also access to /var/log

 httpd_min/Dockerfile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/httpd_min/Dockerfile b/httpd_min/Dockerfile
index ec4e4599..dbb64441 100644
--- a/httpd_min/Dockerfile
+++ b/httpd_min/Dockerfile
@@ -18,14 +18,14 @@ RUN sed -i -e '/listen/!b' -e '/80;/!b' -e 's/80;/8080;/' /etc/nginx/nginx.conf
     && sed -i 's!/var/run/nginx.pid!/tmp/nginx.pid!g' /etc/nginx/nginx.conf \
     && sed -i "/^http {/a \    proxy_temp_path /tmp/proxy_temp;\n    client_body_temp_path 
/tmp/client_temp;\n    fastcgi_temp_path /tmp/fastcgi_temp;\n    uwsgi_temp_path /tmp/uwsgi_temp;\n    
scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf
 
-# nginx user must own the cache directory to write cache
-RUN chown -R l10n:0 /var/lib/nginx \
-    && chmod -R g+w /var/lib/nginx
-
 # forward request and error logs to docker log collector
 RUN ln -sf /dev/stdout /var/log/nginx/access.log \
     && ln -sf /dev/stderr /var/log/nginx/error.log
 
+# nginx user must own the cache directory to write cache
+RUN chown -R l10n:0 /var/lib/nginx /var/log/nginx \
+    && chmod -R g+w /var/lib/nginx /var/log/nginx
+
 STOPSIGNAL SIGTERM
 
 ADD nginx.conf /etc/nginx/conf.d/connfa.conf


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]