diff --git a/gazpar2mqtt/rootfs/scripts/99-run.sh b/gazpar2mqtt/rootfs/scripts/99-run.sh index dac75240b..dc5c4a213 100644 --- a/gazpar2mqtt/rootfs/scripts/99-run.sh +++ b/gazpar2mqtt/rootfs/scripts/99-run.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bashio +################## +# INITIALIZATION # +################## + # Where is the config CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") @@ -70,19 +74,6 @@ for word in $(parse_yaml "$CONFIGSOURCE" ""); do fi 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 -fi - ############## # Launch App # ##############