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