mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Update 99-run.sh
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user