mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-21 13:30:32 +02:00
Update 99-run.sh
This commit is contained in:
@@ -70,6 +70,18 @@ for word in $(parse_yaml "$CONFIGSOURCE" ""); do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
################
|
||||||
|
# Set timezone #
|
||||||
|
################
|
||||||
|
if bashio::config.has_value "TZ"; then
|
||||||
|
TZ=$(bashio::config "TZ")
|
||||||
|
if [ -f /usr/share/zoneinfo/$TZ ]; then
|
||||||
|
bashio::log.info "Timezone set from $(cat /etc/timezone) to $TZ"
|
||||||
|
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
else
|
||||||
|
bashio::log.warning "Timezone $TZ is invalid, it will be kept to default value of $(cat /etc/timezone)"
|
||||||
|
fi
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# Launch App #
|
# Launch App #
|
||||||
##############
|
##############
|
||||||
|
|||||||
Reference in New Issue
Block a user