mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -66,8 +66,11 @@ fi
|
|||||||
################
|
################
|
||||||
if bashio::config.has_value "TZ"; then
|
if bashio::config.has_value "TZ"; then
|
||||||
TZ=$(bashio::config "TZ")
|
TZ=$(bashio::config "TZ")
|
||||||
bashio::log.info "Timezone set to $TZ"
|
if [ -f /usr/share/zoneinfo/$TZ ]; then
|
||||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
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
|
fi
|
||||||
|
|
||||||
##############
|
##############
|
||||||
|
|||||||
Reference in New Issue
Block a user