Update 99-run.sh

This commit is contained in:
Alexandre
2021-11-18 16:24:00 +01:00
committed by GitHub
parent 6568ca1c61
commit e76238cc5c

View File

@@ -61,19 +61,6 @@ else
rm $DATABASESOURCE
fi
################
# 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 #
##############