mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
make sure rpcbind is correctly configured
This commit is contained in:
parent
6ed8a7a492
commit
8ce2298a8f
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ datadir=/mnt/hdd/bitcoin
|
|||
" | sudo -u bitcoin tee /home/bitcoin/.bitcoin/bitcoin.conf
|
||||
else
|
||||
echo "# /home/bitcoin/.bitcoin/bitcoin.conf is present"
|
||||
# make sure rpcbind is correctly configured
|
||||
bindIP=$(grep -c "^rpcbind=" < /mnt/hdd/${network}/${network}.conf)
|
||||
if [ $bindIP -gt 0 ];then
|
||||
sudo sed -i s/^rpcbind=/main.rpcbind=/g /mnt/hdd/${network}/${network}.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
removeParallelService
|
||||
|
|
Loading…
Add table
Reference in a new issue