Archived
1
0
Fork 0

Update entrypoint

This commit is contained in:
Daniel Kempkens 2022-07-16 22:53:20 +02:00
parent cf9e98e316
commit 0a2070d8d5

View file

@ -14,13 +14,15 @@ fi
if [ "$(id -u)" = 0 ]; then if [ "$(id -u)" = 0 ]; then
# set timezone using environment # set timezone using environment
ln -snf /usr/share/zoneinfo/"${TIMEZONE:-UTC}" /etc/localtime ln -snf /usr/share/zoneinfo/"${TZ:-UTC}" /etc/localtime
# start the syslog daemon as root # start the syslog daemon as root
/sbin/syslogd -n -S -O - & /sbin/syslogd -n -S -O - &
# start nginx # start nginx
if [ -e /data/nginx.conf ]; then
nginx -c /data/nginx.conf nginx -c /data/nginx.conf
fi
# skin config # skin config
if [ -e /data/weewx-wdc-skin.conf ]; then if [ -e /data/weewx-wdc-skin.conf ]; then