mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-05 15:15:58 +02:00
Update 99-run.sh
This commit is contained in:
@@ -8,8 +8,12 @@
|
|||||||
if bashio::config.has_value 'TZ'; then
|
if bashio::config.has_value 'TZ'; then
|
||||||
TIMEZONE=$(bashio::config 'TZ')
|
TIMEZONE=$(bashio::config 'TZ')
|
||||||
bashio::log.info "Setting timezone to $TIMEZONE"
|
bashio::log.info "Setting timezone to $TIMEZONE"
|
||||||
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
|
if [ -f /usr/share/zoneinfo/"$TIMEZONE" ]; then
|
||||||
echo "$TIMEZONE" >/etc/timezone
|
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
|
||||||
|
echo "$TIMEZONE" >/etc/timezone
|
||||||
|
else
|
||||||
|
bashio::log.fatal "$TIMEZONE not found, are you sure it is a valid timezone?"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
|||||||
Reference in New Issue
Block a user