mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
Update 99-run.sh
This commit is contained in:
@@ -61,6 +61,15 @@ else
|
||||
rm $DATABASESOURCE
|
||||
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 #
|
||||
##############
|
||||
@@ -68,8 +77,6 @@ echo " "
|
||||
bashio::log.info "Starting the app"
|
||||
echo " "
|
||||
|
||||
export TZ=$(bashio::config "TZ")
|
||||
|
||||
# Test mode
|
||||
if [ $TZ = "test" ]; then
|
||||
echo "secret mode found, launching script in /config/test.sh"
|
||||
|
||||
Reference in New Issue
Block a user