Merge pull request #331 from alexbelgium/create-pull-request/patch-1652573778

Github bot : script beautyshied
This commit is contained in:
Alexandre
2022-05-15 10:06:18 +02:00
committed by GitHub
2 changed files with 12 additions and 12 deletions

View File

@@ -6,14 +6,14 @@
############ ############
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"
if [ -f /usr/share/zoneinfo/"$TIMEZONE" ]; then if [ -f /usr/share/zoneinfo/"$TIMEZONE" ]; then
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
echo "$TIMEZONE" >/etc/timezone echo "$TIMEZONE" >/etc/timezone
else else
bashio::log.fatal "$TIMEZONE not found, are you sure it is a valid timezone?" bashio::log.fatal "$TIMEZONE not found, are you sure it is a valid timezone?"
fi fi
fi fi
################### ###################