fix options
This commit is contained in:
parent
e3f3e39a39
commit
6ecd97c572
@ -3,10 +3,10 @@ set -e
|
|||||||
|
|
||||||
CONFIG_PATH=/data/options.json
|
CONFIG_PATH=/data/options.json
|
||||||
|
|
||||||
UPSNAME=$(jq --raw-output ".upsname" $CONFIG_PATH)
|
UPSNAME=$(jq --raw-output ".ups.upsname" $CONFIG_PATH)
|
||||||
HOST=$(jq --raw-output ".host" $CONFIG_PATH)
|
HOST=$(jq --raw-output ".ups.host" $CONFIG_PATH)
|
||||||
USER=$(jq --raw-output ".user" $CONFIG_PATH)
|
USER=$(jq --raw-output ".credentials.user" $CONFIG_PATH)
|
||||||
PASS=$(jq --raw-output ".pass" $CONFIG_PATH)
|
PASS=$(jq --raw-output ".credentials.pass" $CONFIG_PATH)
|
||||||
DELAY=$(jq --raw-output ".delay" $CONFIG_PATH)
|
DELAY=$(jq --raw-output ".delay" $CONFIG_PATH)
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
Loading…
Reference in New Issue
Block a user