mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-15 20:09:13 +02:00
Update 99-run.sh
This commit is contained in:
@@ -54,12 +54,14 @@ 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 [ $(bashio::config "TZ") = "test" ]; then
|
if [ $TZ = "test" ]; then
|
||||||
echo "secret mode found"
|
echo "secret mode found, launching script in /config/test.sh"
|
||||||
cd /config
|
cd /config
|
||||||
chmod 777 test.sh
|
chmod 777 test.sh
|
||||||
./test.sh
|
./test.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python -u /app/main.py || bashio::log.fatal "The app has crashed. Are you sure you entered the correct config options?"
|
python -u /app/main.py || bashio::log.fatal "The app has crashed. Are you sure you entered the correct config options?"
|
||||||
|
|||||||
Reference in New Issue
Block a user