# config script to make BTC-RPC-Explorer use Electrs if both active source /mnt/hdd/raspiblitz.conf if [ "${BTCRPCexplorer}" = "on" ] & [ "${ElectRS}" = "on" ]; then ## Enable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active if [ $(sudo -u electrs lsof -i | grep -c 50001) -gt 0 ]; then echo "electrs is active - switching address API support on in BTC-RPC-Explorer" sudo -u btcrpcexplorer sed -i 's/^BTCEXP_ADDRESS_API=none/BTCEXP_ADDRESS_API=electrumx/g' /home/btcrpcexplorer/.config/btc-rpc-explorer.env # create ExecStart=/home/admin/btc-rpc-explorer.run.sh cat > /home/admin/btc-rpc-explorer.run.sh <