mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-21 08:11:50 +02:00
Merge pull request #331 from alexbelgium/create-pull-request/patch-1652573778
Github bot : script beautyshied
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
|||||||
Reference in New Issue
Block a user