diff --git a/home.admin/_background.sh b/home.admin/_background.sh index e7e2bb6c2..18df4132a 100644 --- a/home.admin/_background.sh +++ b/home.admin/_background.sh @@ -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