From 6314ea6dda1e371e295c6b13b31e8bc43ea0715d Mon Sep 17 00:00:00 2001 From: /geco Date: Sun, 23 Dec 2018 23:01:18 +0100 Subject: [PATCH] next try --- home.admin/_background.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/_background.sh b/home.admin/_background.sh index e7e2bb6..18df413 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