Skip to content

Commit

Permalink
Fix ownership of cache directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jerm committed Oct 1, 2021
1 parent 89e650f commit 2231371
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit 2231371

Please sign in to comment.