mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed #12299: permissions on storage dir in Docker
Fixes #12299, where currently there is no recursive permissions set on /var/www/html/storage/ during build time. As a result this requires users to run an exec into the container and change the permissions before they are able to initiate the setup. Without this a 500 error is thrown and little is evident in the docker logs as to what the issue is.
This commit is contained in:
parent
c9f7847fb3
commit
6783dc1312
|
@ -105,7 +105,7 @@ RUN \
|
|||
&& ln -fs "/var/lib/snipeit/keys/ldap_client_tls.cert" "/var/www/html/storage/ldap_client_tls.cert" \
|
||||
&& ln -fs "/var/lib/snipeit/keys/ldap_client_tls.key" "/var/www/html/storage/ldap_client_tls.key" \
|
||||
&& chown docker "/var/lib/snipeit/keys/" \
|
||||
&& chown -h docker "/var/www/html/storage/" \
|
||||
&& chown -Rh docker "/var/www/html/storage/" \
|
||||
&& chmod +x /var/www/html/artisan \
|
||||
&& echo "Finished setting up application in /var/www/html"
|
||||
|
||||
|
|
Loading…
Reference in a new issue