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?"