Update run

This commit is contained in:
Alexandre
2022-04-21 13:41:50 +02:00
committed by GitHub
parent 59db4a45c2
commit 1627dad9e2

View File

@@ -5,6 +5,13 @@
# Wait for transmission to become available
bashio::net.wait_for 3000 localhost 900
# Set TZ
if bashio::config.has_value 'TZ'; then
TIMEZONE=$(bashio::config 'TZ')
bashio::log.info "Setting timezone to $TIMEZONE"
ln -snf /usr/share/zoneinfo/"$TZ" /etc/localtime && echo "$TZ" >/etc/timezone
fi
bashio::log.info "Starting NGinx..."
exec nginx