From 8e2f3c278068bb6a8f9f6a2b3d4fa098687a00a4 Mon Sep 17 00:00:00 2001 From: /geco Date: Sun, 23 Dec 2018 23:29:12 +0100 Subject: [PATCH] next try --- home.admin/_background.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/_background.sh b/home.admin/_background.sh index 051333c..0927ab5 100644 --- a/home.admin/_background.sh +++ b/home.admin/_background.sh @@ -128,7 +128,7 @@ do walletPasswordBase64=$(cat /root/lnd.autounlock.pwd | tr -d '\n' | base64 -w0) MACAROON_HEADER="Grpc-Metadata-macaroon: $(xxd -ps -u -c 1000 /mnt/hdd/lnd/data/chain/${network}/${chain}net/admin.macaroon)" # POSTDATA="'{ \"wallet_password\":\"${walletPasswordBase64}\" }'" - POSTDATA="{ \\\"wallet_password\\\":\\\"${walletPasswordBase64}\\\" }" + POSTDATA="\"{ \\\"wallet_password\\\":\\\"${walletPasswordBase64}\\\" }\"" echo "MACAROON:${MACAROON_HEADER}" echo "POSTDATA:${POSTDATA}" result=$(curl -X POST -d ${POSTDATA} --cacert /home/bitcoin/.lnd/tls.cert --header "$MACAROON_HEADER" https://localhost:8080/v1/unlockwallet)