Update 99-run.sh

This commit is contained in:
Alexandre
2021-11-18 15:55:06 +01:00
committed by GitHub
parent fa17ac9d9d
commit 1a72767ef0

View File

@@ -61,6 +61,15 @@ else
rm $DATABASESOURCE rm $DATABASESOURCE
fi fi
################
# Set timezone #
################
if bashio::config.has_value "TZ"; then
TZ=$(bashio::config "TZ")
bashio::log.info "Timezone set to $TZ"
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
fi
############## ##############
# Launch App # # Launch App #
############## ##############
@@ -68,8 +77,6 @@ echo " "
bashio::log.info "Starting the app" bashio::log.info "Starting the app"
echo " " echo " "
export TZ=$(bashio::config "TZ")
# Test mode # Test mode
if [ $TZ = "test" ]; then if [ $TZ = "test" ]; then
echo "secret mode found, launching script in /config/test.sh" echo "secret mode found, launching script in /config/test.sh"