mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
updated string replacement in conf files
This commit is contained in:
@@ -16,7 +16,7 @@ while [ ${#result} -eq 0 ]
|
|||||||
done
|
done
|
||||||
|
|
||||||
# set lightning alias
|
# set lightning alias
|
||||||
sed -i "7s/.*/alias=${result}/" /home/admin/assets/lnd.${network}.conf
|
sed -i "s/^alias=.*/alias=${result}/g" /home/admin/assets/lnd.${network}.conf
|
||||||
|
|
||||||
# store hostname for later - to be set right before the next reboot
|
# store hostname for later - to be set right before the next reboot
|
||||||
# work around - because without a reboot the hostname seems not updates in the whole system
|
# work around - because without a reboot the hostname seems not updates in the whole system
|
||||||
@@ -72,7 +72,8 @@ while [ ${#result} -lt 8 ]
|
|||||||
done
|
done
|
||||||
|
|
||||||
# set Blockchain RPC Password (for admin cli & template for user bitcoin)
|
# set Blockchain RPC Password (for admin cli & template for user bitcoin)
|
||||||
sed -i "14s/.*/rpcpassword=$result/" /home/admin/assets/${network}.conf
|
sed -i "s/^rpcpassword=.*/rpcpassword=${result}/g" /home/admin/assets/${network}.conf
|
||||||
|
sed -i "s/^${network}d.rpcuser=.*/${network}d.rpcuser=${result}/g" /home/admin/assets/lnd.${network}.conf
|
||||||
|
|
||||||
|
|
||||||
# success info dialog
|
# success info dialog
|
||||||
|
@@ -11,7 +11,7 @@ disablewallet=1
|
|||||||
|
|
||||||
# Connection settings
|
# Connection settings
|
||||||
rpcuser=raspibolt
|
rpcuser=raspibolt
|
||||||
# LINE15 -insert-> rpcpassword=[PASSWORDB]
|
rpcpassword=passwordB
|
||||||
zmqpubrawblock=tcp://127.0.0.1:29000
|
zmqpubrawblock=tcp://127.0.0.1:29000
|
||||||
zmqpubrawtx=tcp://127.0.0.1:29000
|
zmqpubrawtx=tcp://127.0.0.1:29000
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ disablewallet=1
|
|||||||
|
|
||||||
# Connection settings
|
# Connection settings
|
||||||
rpcuser=raspibolt
|
rpcuser=raspibolt
|
||||||
# LINE15 -insert-> rpcpassword=[PASSWORDB]
|
rpcpassword=passwordB
|
||||||
zmqpubrawblock=tcp://127.0.0.1:28332
|
zmqpubrawblock=tcp://127.0.0.1:28332
|
||||||
zmqpubrawtx=tcp://127.0.0.1:28332
|
zmqpubrawtx=tcp://127.0.0.1:28332
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
debuglevel=info
|
debuglevel=info
|
||||||
debughtlc=true
|
debughtlc=true
|
||||||
maxpendingchannels=5
|
maxpendingchannels=5
|
||||||
# LINE7 -insert-> alias=[ALIAS]
|
alias=raspiblitz
|
||||||
color=#68F442
|
color=#68F442
|
||||||
|
|
||||||
[Bitcoin]
|
[Bitcoin]
|
||||||
@@ -15,6 +15,9 @@ bitcoin.testnet=1
|
|||||||
#bitcoin.mainnet=1
|
#bitcoin.mainnet=1
|
||||||
|
|
||||||
bitcoin.node=bitcoind
|
bitcoin.node=bitcoind
|
||||||
|
bitcoind.rpcuser=raspibolt
|
||||||
|
bitcoind.rpcpass=passwordB
|
||||||
|
bitcoind.zmqpath=tcp://127.0.0.1:29000
|
||||||
|
|
||||||
[autopilot]
|
[autopilot]
|
||||||
autopilot.active=1
|
autopilot.active=1
|
||||||
|
@@ -4,15 +4,15 @@
|
|||||||
debuglevel=info
|
debuglevel=info
|
||||||
debughtlc=true
|
debughtlc=true
|
||||||
maxpendingchannels=5
|
maxpendingchannels=5
|
||||||
# LINE7 -insert-> alias=[ALIAS]
|
alias=raspiblitz
|
||||||
color=#68F442
|
color=#68F442
|
||||||
|
|
||||||
[Litecoin]
|
[Litecoin]
|
||||||
litecoin.active=1
|
litecoin.active=1
|
||||||
litecoin.mainnet=1
|
litecoin.mainnet=1
|
||||||
litecoin.node=litecoind
|
litecoin.node=litecoind
|
||||||
litecoind.rpcuser=jason
|
litecoind.rpcuser=raspibolt
|
||||||
litecoind.rpcpass=litecoin
|
litecoind.rpcpass=passwordB
|
||||||
litecoind.zmqpath=tcp://127.0.0.1:28332
|
litecoind.zmqpath=tcp://127.0.0.1:28332
|
||||||
|
|
||||||
[autopilot]
|
[autopilot]
|
||||||
|
Reference in New Issue
Block a user