This commit is contained in:
/geco 2018-12-23 23:01:18 +01:00
parent 3e359a436c
commit 6314ea6dda

View file

@ -132,8 +132,8 @@ do
# execute REST call
#echo "${command}"
#result=$($command)
POSTDATA="{'wallet_password': '${walletPasswordBase64}'}"
result=$(curl -X POST -d "${POSTDATA}" --cacert /home/bitcoin/.lnd/tls.cert --header "$MACAROON_HEADER" https://localhost:8080/v1/unlockwallet)
POSTDATA="'{\"wallet_password\": \"${walletPasswordBase64}\"}'"
result=$(curl -X POST -d ${POSTDATA} --cacert /home/bitcoin/.lnd/tls.cert --header "$MACAROON_HEADER" https://localhost:8080/v1/unlockwallet)
echo "${result}"
else