mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 00:27:47 +02:00
fix temp path
This commit is contained in:
@@ -165,7 +165,7 @@ alias ${netprefix}lncli=\"sudo -u bitcoin /usr/local/bin/lncli\
|
|||||||
if [ "${initwallet}" == "1" ] && [ "${walletExists}" == "0" ]; then
|
if [ "${initwallet}" == "1" ] && [ "${walletExists}" == "0" ]; then
|
||||||
# only ask on mainnet for passwordC - for the testnet/signet its default 'raspiblitz'
|
# only ask on mainnet for passwordC - for the testnet/signet its default 'raspiblitz'
|
||||||
if [ "${CHAIN}" == "mainnet" ]; then
|
if [ "${CHAIN}" == "mainnet" ]; then
|
||||||
tempFile="/var/cache/raspiblitz/temp/passwordc.tmp"
|
tempFile="/var/cache/raspiblitz/passwordc.tmp"
|
||||||
sudo /home/admin/config.scripts/blitz.setpassword.sh x "PASSWORD C - Lightning Wallet Password" ${tempFile}
|
sudo /home/admin/config.scripts/blitz.setpassword.sh x "PASSWORD C - Lightning Wallet Password" ${tempFile}
|
||||||
passwordC=$(sudo cat ${tempFile})
|
passwordC=$(sudo cat ${tempFile})
|
||||||
sudo rm ${tempFile}
|
sudo rm ${tempFile}
|
||||||
@@ -175,7 +175,8 @@ alias ${netprefix}lncli=\"sudo -u bitcoin /usr/local/bin/lncli\
|
|||||||
source <(sudo /home/admin/config.scripts/lnd.initwallet.py mainnet new ${passwordC})
|
source <(sudo /home/admin/config.scripts/lnd.initwallet.py mainnet new ${passwordC})
|
||||||
if [ "${err}" != "" ]; then
|
if [ "${err}" != "" ]; then
|
||||||
clear
|
clear
|
||||||
echo "!!! LND mainnet wallet creation failed"
|
echo "# !!! LND mainnet wallet creation failed"
|
||||||
|
echo "# ${err}"
|
||||||
sleep 6
|
sleep 6
|
||||||
else
|
else
|
||||||
seedFile="/mnt/hdd/lnd/data/chain/${network}/${CHAIN}/seedwords.info"
|
seedFile="/mnt/hdd/lnd/data/chain/${network}/${CHAIN}/seedwords.info"
|
||||||
|
Reference in New Issue
Block a user