restart btc-rpc-explorer if installed

This commit is contained in:
rootzoll 2021-09-16 19:23:38 +02:00
parent dc6f598394
commit a13dd67e93

View File

@ -438,6 +438,12 @@ WantedBy=multi-user.target
/home/admin/config.scripts/internet.hiddenservice.sh electrs 50002 50002 50001 50001
fi
# restart BTC-RPC-Explorer to reconfigure itself to use electrs for address API
if [ "${BTCRPCexplorer}" == "on" ]; then
sudo systemctl restart btc-rpc-explorer
echo "# BTC-RPC-Explorer restarted"
fi
echo
echo "# To connect through SSL from outside of the local network make sure the port 50002 is forwarded on the router"
echo
@ -474,6 +480,12 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
sudo ufw deny 50001
sudo ufw deny 50002
echo "# OK ElectRS removed."
# restart BTC-RPC-Explorer to reconfigure itself to use electrs for address API
if [ "${BTCRPCexplorer}" == "on" ]; then
sudo systemctl restart btc-rpc-explorer
echo "# BTC-RPC-Explorer restarted"
fi
else
echo "# ElectRS is not installed."