[paste-web/oscp] Adjust permissions



commit 36c2b075b54abc249320af53bacb4dee0f802a8d
Author: Andrea Veri <averi redhat com>
Date:   Tue Oct 23 15:31:33 2018 +0200

    Adjust permissions

 Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 7f9f83f..8b09741 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,7 +35,9 @@ RUN patch -p0 < /tmp/patches/update_app_config_php7.patch
 RUN patch -p0 < /tmp/patches/gnome_ldap_customizations.patch
 
 RUN chown -R 1001:root /var/www/html && \
-    chmod -R 777 app/storage && \
+    find /var/www/html -type d | xargs chmod 775 && \
+    find /var/www/html -type f | xargs chmod 664 && \
+    chmod 660 ${PASTE_HOME}/app/config/database.php && \
     chmod 755 /var/log/httpd24 && \ 
     chown -R 1001:root /var/log/httpd24 && \
     rm -r ${ASSETS_HOME}


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