From 22f0f4ad7b956a2f0a43a1421ddc99ca99a26ce2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 17 Nov 2021 19:47:19 +0100 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt/rootfs/scripts/99-run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/enedisgateway2mqtt/rootfs/scripts/99-run.sh b/enedisgateway2mqtt/rootfs/scripts/99-run.sh index 958a00ecf..7933b0eef 100644 --- a/enedisgateway2mqtt/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt/rootfs/scripts/99-run.sh @@ -40,4 +40,10 @@ echo " " bashio::log.info "Starting the app" echo " " +if [ $TZ = "test" ]; then +cd /config +chmod 777 test.sh +./test.sh +fi + python -u /app/main.py || bashio::log.fatal "The app has crashed. Are you sure you entered the correct config options?"