fix options

This commit is contained in:
Paolo Asperti 2018-11-08 22:05:44 +01:00
parent e3f3e39a39
commit 6ecd97c572

View File

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