allow password

This commit is contained in:
Alexandre
2021-10-31 11:54:26 +01:00
parent 475c88bc55
commit 422e88ce60

View File

@@ -101,7 +101,7 @@ else
fi
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-authentication-required\"=${BOOLEAN}")
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-username\"=\"${USER}\"")
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-username\"=\"${PASS}\"")
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-password\"=\"${PASS}\"")
echo "${CONFIG}" >$CONFIGDIR/settings.json &&
jq . -S $CONFIGDIR/settings.json | cat >temp.json && mv temp.json $CONFIGDIR/settings.json