Browse Source

updated string replacement in conf files

#146
rootzoll 7 years ago
parent
commit
98350b9069
  1. 5
      home.admin/20initDialog.sh
  2. 2
      home.admin/assets/bitcoin.conf
  3. 2
      home.admin/assets/litecoin.conf
  4. 5
      home.admin/assets/lnd.bitcoin.conf
  5. 8
      home.admin/assets/lnd.litecoin.conf

5
home.admin/20initDialog.sh

@ -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

2
home.admin/assets/bitcoin.conf

@ -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

2
home.admin/assets/litecoin.conf

@ -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

5
home.admin/assets/lnd.bitcoin.conf

@ -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

8
home.admin/assets/lnd.litecoin.conf

@ -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]

Loading…
Cancel
Save