electrs, btcexplorer: start checking only if both active

This commit is contained in:
openoms 2019-12-11 14:21:34 +00:00
parent 7f0c8de0a1
commit d0fdbdf60b
2 changed files with 4 additions and 2 deletions

View File

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

View File

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