3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 19:15:38 +00:00

Fix ownership of cache directory

Snipe-IT was waiting to load because
/var/www/html/storage/framework/cache/ and its contet were owned by
root:root, but docker needed to be able to write to them

This change recursively chowns that path to docker:root, and now it
loads.
This commit is contained in:
Jeremy Price
2021-10-01 16:54:17 -07:00
parent 89e650f842
commit 22313711d5

View File

@ -40,6 +40,7 @@ done
chown -R docker:root /var/lib/snipeit/data/*
chown -R docker:root /var/lib/snipeit/dumps
chown -R docker:root /var/lib/snipeit/keys
chown -R docker:root /var/www/html/storage/framework/cache
# Fix php settings
if [ -v "PHP_UPLOAD_LIMIT" ]