Update 90-config_yaml.sh

This commit is contained in:
Alexandre
2021-12-03 18:50:51 +01:00
committed by GitHub
parent 37fefb8c2c
commit 1409558733

View File

@@ -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