mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
restart btc-rpc-explorer if installed
This commit is contained in:
@@ -438,6 +438,12 @@ WantedBy=multi-user.target
|
|||||||
/home/admin/config.scripts/internet.hiddenservice.sh electrs 50002 50002 50001 50001
|
/home/admin/config.scripts/internet.hiddenservice.sh electrs 50002 50002 50001 50001
|
||||||
fi
|
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
|
||||||
echo "# To connect through SSL from outside of the local network make sure the port 50002 is forwarded on the router"
|
echo "# To connect through SSL from outside of the local network make sure the port 50002 is forwarded on the router"
|
||||||
echo
|
echo
|
||||||
@@ -474,6 +480,12 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
|||||||
sudo ufw deny 50001
|
sudo ufw deny 50001
|
||||||
sudo ufw deny 50002
|
sudo ufw deny 50002
|
||||||
echo "# OK ElectRS removed."
|
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
|
else
|
||||||
echo "# ElectRS is not installed."
|
echo "# ElectRS is not installed."
|
||||||
|
Reference in New Issue
Block a user