Skip to content

Commit

Permalink
Fix permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TBK committed Sep 24, 2020
1 parent 081fbc8 commit 83d9e12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion app/Dockerfile
Expand Up @@ -74,8 +74,12 @@ RUN set -ex \
&& composer install \
&& echo "Changing ownership:" \
&& chown bookstack:bookstack -R . \
&& echo "Setting folder permissions for www-data:" \
&& chown www-data:bookstack -R bootstrap/cache public/uploads storage \
&& echo "Ensure www-data got access to Nginx folders:" \
&& chown www-data:www-data -R /var/lib/nginx /var/log/nginx
&& chown www-data:www-data -R /var/lib/nginx /var/log/nginx \
&& echo "Giving all system users access to multirun:" \
&& chmod 0755 /usr/bin/multirun

USER www-data:www-data

Expand Down
3 changes: 0 additions & 3 deletions app/entrypoint.sh
Expand Up @@ -6,9 +6,6 @@ if [ ! -f /app/.env ]; then
fi
php artisan migrate --no-interaction --force

echo "Setting folder permissions for www-data:"
chown -R www-data:bookstack bootstrap/cache public/uploads storage

php artisan cache:clear
php artisan view:clear

Expand Down

0 comments on commit 83d9e12

Please sign in to comment.