diff --git a/upsmon/run.sh b/upsmon/run.sh index f9c7871..dca4c4f 100644 --- a/upsmon/run.sh +++ b/upsmon/run.sh @@ -3,10 +3,10 @@ set -e CONFIG_PATH=/data/options.json -UPSNAME=$(jq --raw-output ".upsname" $CONFIG_PATH) -HOST=$(jq --raw-output ".host" $CONFIG_PATH) -USER=$(jq --raw-output ".user" $CONFIG_PATH) -PASS=$(jq --raw-output ".pass" $CONFIG_PATH) +UPSNAME=$(jq --raw-output ".ups.upsname" $CONFIG_PATH) +HOST=$(jq --raw-output ".ups.host" $CONFIG_PATH) +USER=$(jq --raw-output ".credentials.user" $CONFIG_PATH) +PASS=$(jq --raw-output ".credentials.pass" $CONFIG_PATH) DELAY=$(jq --raw-output ".delay" $CONFIG_PATH) echo "