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
|
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
|
||||||
|
|
Reference in a new issue