docker-nginx-auto/app/init.sh

18 lines
326 B
Bash
Raw Normal View History

2021-08-20 17:02:57 -04:00
#!/bin/sh
. /root/common.sh
false | cp -ai /root/default/* "${CONF}/" 2>/dev/null
if ! [ -e "${CONF}/sites-enabled" ]; then
ln -s conf.d "${CONF}/sites-enabled"
fi
mkdir -p /var/log/nginx /var/cache/nginx
~/reloader.sh &
(sleep 30; RELOAD_FIRST=no /root/acme-autocert.sh) &
/usr/sbin/crond -b
"${BIN}" -g 'daemon off;'