Update entrypoint
This commit is contained in:
parent
cf9e98e316
commit
0a2070d8d5
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue