|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
set -eu
|
|
set -eu
|
|
|
|
|
|
-mkdir -p /app/data/public /run/apache2 /run/proftpd
|
|
|
|
|
|
+mkdir -p /app/data/public /run/apache2 /run/proftpd /run/app
|
|
|
|
|
|
# check if any index file exists
|
|
# check if any index file exists
|
|
for f in /app/data/public/index.*; do
|
|
for f in /app/data/public/index.*; do
|
|
@@ -61,7 +61,7 @@ if [ -f "/app/data/run.sh" ]; then
|
|
/bin/bash /app/data/run.sh
|
|
/bin/bash /app/data/run.sh
|
|
fi
|
|
fi
|
|
|
|
|
|
-chown -R www-data:www-data /app/data /run/apache2 /run/proftpd
|
|
|
|
|
|
+chown -R www-data:www-data /app/data /run/apache2 /run/proftpd /run/app
|
|
|
|
|
|
echo "Starting supervisord"
|
|
echo "Starting supervisord"
|
|
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Lamp
|
|
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Lamp
|