From 104286fd9cf159ceca58aa363be99c2a240bddca Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Sat, 27 Apr 2019 23:26:48 +0200 Subject: [PATCH] correct parameter name --- home.admin/_bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/_bootstrap.sh b/home.admin/_bootstrap.sh index d1a293b..0b69154 100644 --- a/home.admin/_bootstrap.sh +++ b/home.admin/_bootstrap.sh @@ -408,8 +408,8 @@ if [ ${#network} -gt 0 ] && [ ${#chain} -gt 0 ]; then echo "making sure LND blockchain RPC password is set correct" >> $logFile source <(sudo cat /mnt/hdd/${network}/${network}.conf 2>/dev/null | grep "rpcpass" | sed 's/^[a-z]*\./lnd/g') - if [ ${#rpcpass} -gt 0 ]; then - sudo sed -i "s/^${network}d.rpcpass=.*/${network}d.rpcpass=${rpcpass}/g" /mnt/hdd/lnd/lnd.conf 2>/dev/null + if [ ${#rpcpassword} -gt 0 ]; then + sudo sed -i "s/^${network}d.rpcpass=.*/${network}d.rpcpass=${rpcpassword}/g" /mnt/hdd/lnd/lnd.conf 2>/dev/null else echo "WARN: could not get value 'rpcuser' from blockchain conf" >> $logFile fi