Files
hcpy/run.sh
2024-04-16 19:29:09 +02:00

9 lines
251 B
Bash

#!/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