Need to ensure volume subdirectories get created with necessary permissions.

pull/681/head
Programster 7 years ago
parent 4e7f0eae6f
commit 17b0b623ca

@ -3,11 +3,15 @@
# Have supervisor manage the apache process instead
service apache2 stop
# Make sure I have permissions to the volumes
# Make sure I have permissions to the volumes and the necessary folders exist.
mkdir -p /uploads/big
mkdir -p /uploads/import
mkdir -p /uploads/medium
mkdir -p /uploads/thumb
chown root:www-data -R /var/www/lychee/data
chown root:www-data -R /var/www/lychee/uploads
chmod 770 /var/www/lychee/uploads
chmod 770 /var/www/lychee/data
chmod 770 -R /var/www/lychee/uploads
chmod 770 -R /var/www/lychee/data
# Here is a good point to run database migrations (before the webserver is started up by supervisord)
#/usr/bin/php /var/www/lychee/scripts/migrate.php
Loading…
Cancel
Save