[connfa-web] Land chown/chmods
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [connfa-web] Land chown/chmods
- Date: Tue, 18 Jun 2019 17:00:42 +0000 (UTC)
commit ddf7377f2465b218f148cdf6c268bb160d265f99
Author: Andrea Veri <averi redhat com>
Date:   Tue Jun 18 19:00:34 2019 +0200
    Land chown/chmods
 Dockerfile    | 5 +++++
 entrypoint.sh | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 344bf83..23ebdc4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,5 +16,10 @@ RUN rm /etc/httpd/conf.d/welcome.conf
 COPY httpd.conf /etc/httpd/conf.d/connfa.conf
 
 WORKDIR /app/connfa
+
+RUN chown -R 1000630000:0 /app/connfa && \
+    chmod -R 664 /app/connfa && \
+    find /app/connfa -type d -exec chmod 775 {} +
+ 
 COPY entrypoint.sh /entrypoint.sh
 ENTRYPOINT ["/entrypoint.sh"]
diff --git a/entrypoint.sh b/entrypoint.sh
index 0efab6b..77ef657 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -9,4 +9,4 @@ sed -i "s/CONNFA_MYSQL_PASS/$CONNFA_MYSQL_PASS/g" /app/connfa/.env
 
 php artisan migrate
 php artisan password:change --name=admin --password="$CONNFA_ADMIN_PASS"
-exec httpd -DFOREGROUND
+exec /usr/bin/httpd -DFOREGROUND
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]