Define RPC blocknotify values in install script

This commit is contained in:
runbtc 2024-05-10 14:55:41 -07:00
parent e5af643ef1
commit becf3c7246
No known key found for this signature in database
GPG Key ID: B365F26B1E726291
2 changed files with 8 additions and 2 deletions

View File

@ -23,8 +23,8 @@ BITCOIN_P2P_PORT=__BITCOIN_P2P_PORT__
# bitcoind rpc ports
BITCOIN_RPC_HOST=__BITCOIN_RPC_HOST__
BITCOIN_RPC_PORT=__BITCOIN_RPC_PORT__
BITCOIN_RPC_BLOCKNOTIFY_HOST=127.0.0.1
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120
BITCOIN_RPC_BLOCKNOTIFY_HOST=__BITCOIN_RPC_BLOCKNOTIFY_HOST__
BITCOIN_RPC_BLOCKNOTIFY_PORT=__BITCOIN_RPC_BLOCKNOTIFY_PORT__
# bisq pathnames
BISQ_HOME=__BISQ_HOME__

View File

@ -34,6 +34,8 @@ BITCOIN_P2P_HOST=127.0.0.1
BITCOIN_P2P_PORT=8333
BITCOIN_RPC_HOST=127.0.0.1
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_BLOCKNOTIFY_HOST=127.0.0.1
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120
# set below settings to use existing bitcoin node
#BITCOIN_INSTALL=false
@ -43,6 +45,8 @@ BITCOIN_RPC_PORT=8332
#BITCOIN_RPC_PORT=8332
#BITCOIN_RPC_USER=foo
#BITCOIN_RPC_PASS=bar
#BITCOIN_RPC_BLOCKNOTIFY_HOST=0.0.0.0
#BITCOIN_RPC_BLOCKNOTIFY_PORT=5120
TOR_PKG="tor"
TOR_USER=debian-tor
@ -137,6 +141,8 @@ sudo sed -i -e "s/__BITCOIN_RPC_HOST__/${BITCOIN_RPC_HOST}/" "${SYSTEMD_ENV_HOME
sudo sed -i -e "s/__BITCOIN_RPC_PORT__/${BITCOIN_RPC_PORT}/" "${SYSTEMD_ENV_HOME}/bisq.env"
sudo sed -i -e "s/__BITCOIN_RPC_USER__/${BITCOIN_RPC_USER}/" "${SYSTEMD_ENV_HOME}/bisq.env"
sudo sed -i -e "s/__BITCOIN_RPC_PASS__/${BITCOIN_RPC_PASS}/" "${SYSTEMD_ENV_HOME}/bisq.env"
sudo sed -i -e "s/__BITCOIN_RPC_BLOCKNOTIFY_HOST__/${BITCOIN_RPC_BLOCKNOTIFY_HOST}/" "${SYSTEMD_ENV_HOME}/bisq.env"
sudo sed -i -e "s/__BITCOIN_RPC_BLOCKNOTIFY_PORT__/${BITCOIN_RPC_BLOCKNOTIFY_PORT}/" "${SYSTEMD_ENV_HOME}/bisq.env"
sudo sed -i -e "s!__BISQ_APP_NAME__!${BISQ_APP_NAME}!" "${SYSTEMD_ENV_HOME}/bisq.env"
sudo sed -i -e "s!__BISQ_HOME__!${BISQ_HOME}!" "${SYSTEMD_ENV_HOME}/bisq.env"