added run.sh; removed *.sh from gitignore

This commit is contained in:
p_magyar
2024-04-16 19:29:09 +02:00
parent ad3f4d8576
commit 4a46bcc349
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@@ -9,5 +9,4 @@ __*
*.txt *.txt
*.json *.json
*.zip *.zip
*.sh
*.ini *.ini

8
run.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if [ -f /data/options.json ]; then
set -o allexport
eval "$(jq -r 'to_entries[]|"\(.key)=\"\(.value)\""' /data/options.json)"
set +o allexport
exec python3 hc2mqtt.py
fi
exec python3 hc2mqtt.py --config ./config/config.ini