diff --git a/home.admin/_background.sh b/home.admin/_background.sh index 621f30a9c..959b8a2fa 100644 --- a/home.admin/_background.sh +++ b/home.admin/_background.sh @@ -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 ############################### diff --git a/home.admin/config.scripts/bonus.electrsexplorer.sh b/home.admin/config.scripts/bonus.electrsexplorer.sh index 52482cee1..7260f66db 100644 --- a/home.admin/config.scripts/bonus.electrsexplorer.sh +++ b/home.admin/config.scripts/bonus.electrsexplorer.sh @@ -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