lnd postStart: suppress curl response output

Errors are still shown
This commit is contained in:
Erik Arvstedt 2019-11-27 14:04:42 +01:00
parent 3e86637327
commit 120e3e8cfe
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -115,9 +115,9 @@ in {
if [[ ! -f ${cfg.dataDir}/chain/bitcoin/mainnet/wallet.db ]]; then if [[ ! -f ${cfg.dataDir}/chain/bitcoin/mainnet/wallet.db ]]; then
echo Creating lnd wallet echo Creating lnd wallet
${pkgs.curl}/bin/curl -s \ ${pkgs.curl}/bin/curl -s --output /dev/null --show-error \
--cacert /secrets/lnd_cert \ --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')}" \ \"cipher_seed_mnemonic\": $(cat /secrets/lnd-seed-mnemonic | tr -d '\n')}" \
https://127.0.0.1:8080/v1/initwallet https://127.0.0.1:8080/v1/initwallet
else else