electrsAddressAPI: set only in _background.sh

This commit is contained in:
openoms
2019-12-25 08:28:01 +01:00
parent 45bfa65e89
commit 04209f57dc
2 changed files with 5 additions and 3 deletions

View File

@@ -163,7 +163,8 @@ EOF
echo "monitor with: sudo tail -n 20 -f /mnt/hdd/bitcoin/debug.log" echo "monitor with: sudo tail -n 20 -f /mnt/hdd/bitcoin/debug.log"
## Enable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active ## Enable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active
/home/admin/config.scripts/bonus.electrsexplorer.sh # see /home/admin/config.scripts/bonus.electrsexplorer.sh
# run every 10 min by _background.sh
# Hidden Service for BTC-RPC-explorer if Tor is active # Hidden Service for BTC-RPC-explorer if Tor is active
source /mnt/hdd/raspiblitz.conf source /mnt/hdd/raspiblitz.conf

View File

@@ -307,7 +307,8 @@ WantedBy=multi-user.target
fi fi
## Enable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active ## Enable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active
/home/admin/config.scripts/bonus.electrsexplorer.sh # see /home/admin/config.scripts/bonus.electrsexplorer.sh
# run every 10 min by _background.sh
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"
@@ -344,7 +345,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
echo "OK ElectRS removed." echo "OK ElectRS removed."
## Disable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active ## Disable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active
/home/admin/config.scripts/bonus.electrsexplorer.sh off /home/admin/config.scripts/bonus.electrsexplorer.sh
else else
echo "ElectRS is not installed." echo "ElectRS is not installed."
fi fi