mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
electrs, btcexplorer: start checking only if both active
This commit is contained in:
parent
7f0c8de0a1
commit
d0fdbdf60b
@ -314,7 +314,9 @@ do
|
||||
# check every 10 minutes
|
||||
electrsExplorer=$((($counter % 600)+1))
|
||||
if [ ${electrsExplorer} -eq 1 ]; then
|
||||
/home/admin/config.scripts/bonus.electrsexplorer.sh
|
||||
if [ "${BTCRPCexplorer}" = "on" ] & [ "${ElectRS}" = "on" ]; then
|
||||
/home/admin/config.scripts/bonus.electrsexplorer.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
###############################
|
||||
|
@ -56,8 +56,8 @@ EOF
|
||||
sudo sed -i "s/^ExecStart=\/home\/bitcoin\/btc-rpc-explorer.run.sh/ExecStart=\/usr\/local\/lib\/nodejs\/node-$(node -v)-$DISTRO\/bin\/btc-rpc-explorer/g" /etc/systemd/system/btc-rpc-explorer.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl restart btc-rpc-explorer
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
## Disable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active
|
||||
if [ "${BTCRPCexplorer}" = "on" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user