nginx-app/start.sh

19 lines
374 B
Bash
Raw Normal View History

2016-12-12 11:04:16 +00: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 16:27:37 +00:00
if ! [ -e "/app/data/public" ]; then
cp -a "/app/code/public.default" "/app/data/public"
2016-12-12 11:04:16 +00:00
fi
chown -R cloudron:cloudron /app/data
2018-12-22 14:38:38 +00:00
export HOME=/app/data
2020-06-16 14:16:50 +00:00
/usr/sbin/php-fpm7.2 &
2016-12-12 11:04:16 +00:00
exec /usr/sbin/nginx -c /app/data/nginx.conf -g 'daemon off;'