From 120e3e8cfea6221371ef5a939cbcb7138e3808dc Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 27 Nov 2019 14:04:42 +0100 Subject: [PATCH] lnd postStart: suppress curl response output Errors are still shown --- modules/lnd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lnd.nix b/modules/lnd.nix index 9764f5e..73b9740 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -115,9 +115,9 @@ in { if [[ ! -f ${cfg.dataDir}/chain/bitcoin/mainnet/wallet.db ]]; then echo Creating lnd wallet - ${pkgs.curl}/bin/curl -s \ + ${pkgs.curl}/bin/curl -s --output /dev/null --show-error \ --cacert /secrets/lnd_cert \ - -X POST -d "{\"wallet_password\": \"$(cat /secrets/lnd-wallet-password | tr -d '\n' |base64 -w0)\", \ + -X POST -d "{\"wallet_password\": \"$(cat /secrets/lnd-wallet-password | tr -d '\n' | base64 -w0)\", \ \"cipher_seed_mnemonic\": $(cat /secrets/lnd-seed-mnemonic | tr -d '\n')}" \ https://127.0.0.1:8080/v1/initwallet else