From 0a2070d8d53b6a5f46e04f0d4fb7665473d5dfb4 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sat, 16 Jul 2022 22:53:20 +0200 Subject: [PATCH] Update entrypoint --- entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3fbcbbe..bbcb843 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,13 +14,15 @@ fi if [ "$(id -u)" = 0 ]; then # 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 /sbin/syslogd -n -S -O - & # start nginx - nginx -c /data/nginx.conf + if [ -e /data/nginx.conf ]; then + nginx -c /data/nginx.conf + fi # skin config if [ -e /data/weewx-wdc-skin.conf ]; then