mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
fix network/chain detection
This commit is contained in:
parent
aef51566d3
commit
a5b0f54233
1 changed files with 2 additions and 2 deletions
|
@ -330,7 +330,7 @@ sed -i "s/^message=.*/message='waiting login'/g" ${infoFile}
|
|||
# check for BITCOIN
|
||||
loaded=$(sudo systemctl status bitcoind | grep -c 'loaded')
|
||||
if [ ${loaded} -gt 0 ]; then
|
||||
sed -i "s/^network=.*/chain=bitcoin/g" ${infoFile}
|
||||
sed -i "s/^network=.*/network=bitcoin/g" ${infoFile}
|
||||
source /mnt/hdd/bitcoin/bitcoin.conf
|
||||
if [ ${testnet} -gt 0 ]; then
|
||||
sed -i "s/^chain=.*/chain=test/g" ${infoFile}
|
||||
|
@ -342,7 +342,7 @@ fi
|
|||
# check for LITECOIN
|
||||
loaded=$(sudo systemctl status litecoind | grep -c 'loaded')
|
||||
if [ ${loaded} -gt 0 ]; then
|
||||
sed -i "s/^network=.*/chain=litecoin/g" ${infoFile}
|
||||
sed -i "s/^network=.*/network=litecoin/g" ${infoFile}
|
||||
sed -i "s/^chain=.*/chain=main/g" ${infoFile}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue