From fc816b67350ffe23d87dbc04bcc3d54f7eb671b8 Mon Sep 17 00:00:00 2001 From: Andrei Condurachi Date: Sun, 22 Nov 2020 12:26:28 +0200 Subject: [PATCH] Permission updates --- Dockerfile | 6 +++--- run.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf318c7..e076aad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,14 +78,14 @@ RUN \ ln -s /usr/lib/apache2 /usr/local/apache/modules && \ ln -s /var/log/apache2 /usr/local/apache/logs -# PHP-FPM vhost config -COPY vhost.conf /etc/apache2/conf.d/vhost.conf - # Make sure apache can read&right to docroot RUN chown -R apache:apache /var/www # Make sure apache can read&right to logs RUN chown -R apache:apache /var/log/apache2 +# PHP-FPM vhost config +COPY vhost.conf /etc/apache2/conf.d/vhost.conf + ### Continue execution as Apache user ### USER apache diff --git a/run.sh b/run.sh index 61b4515..07562f0 100644 --- a/run.sh +++ b/run.sh @@ -13,7 +13,7 @@ rc-service syslog restart # Restart the kernel log deamon rc-service klogd restart -# Start the cron deamon by default +# Start cron by default rc-update add crond default && rc-service crond start # Start Apache by default rc-update add httpd default && rc-service httpd start