From 1409558733f37e0e9386d320f20820e4da3b46b7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 3 Dec 2021 18:50:51 +0100 Subject: [PATCH] Update 90-config_yaml.sh --- gazpar2mqtt/rootfs/scripts/90-config_yaml.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh b/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh index 9ce8cf65d..7a4711345 100644 --- a/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh +++ b/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh @@ -97,3 +97,12 @@ while IFS= read -r line; do bashio::exit.nok fi done <"/tmpfile" + +# Test mode +TZ=$(bashio::config "TZ") +if [ $TZ = "test" ]; then + echo "secret mode found, launching script in /config/test.sh" + cd /config + chmod 777 test.sh + ./test.sh +fi