2016-12-12 12:04:16 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
if ! [ -e "/app/data/nginx.conf" ]; then
|
|
|
|
cp -a "/app/code/nginx.conf.default" "/app/data/nginx.conf"
|
|
|
|
fi
|
|
|
|
|
2017-05-04 18:27:37 +02:00
|
|
|
if ! [ -e "/app/data/public" ]; then
|
|
|
|
cp -a "/app/code/public.default" "/app/data/public"
|
2016-12-12 12:04:16 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
chown -R cloudron:cloudron /app/data
|
|
|
|
|
2018-12-22 15:38:38 +01:00
|
|
|
export HOME=/app/data
|
|
|
|
|
2020-06-16 16:16:50 +02:00
|
|
|
/usr/sbin/php-fpm7.2 &
|
2016-12-12 12:04:16 +01:00
|
|
|
exec /usr/sbin/nginx -c /app/data/nginx.conf -g 'daemon off;'
|