Fix permission issue

This commit is contained in:
TBK 2020-09-24 10:54:23 +02:00
parent 081fbc8d33
commit 29c35e9d7d
No known key found for this signature in database
GPG Key ID: 6D4FD19CB66C95EA
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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
@ -27,4 +24,4 @@ trapIt() {
}
echo "Starting Nginx & PPM:"
multirun nginx trapIt /ppm/vendor/bin/ppm start --ansi --no-interaction --config=ppm.json
multirun "nginx" "$( trapIt /ppm/vendor/bin/ppm start --ansi --no-interaction --config=ppm.json )"