update rpc password

This commit is contained in:
rootzoll 2021-09-16 16:47:27 +02:00
parent d5f22e5345
commit a9cd70a578

View File

@ -113,8 +113,12 @@ if [ "$1" = "prestart" ]; then
echo "## btc-rpc-explorer.service PRESTART CONFIG"
echo "# TODO: check generel config ..."
date > /home/btcrpcexplorer/prestart.log
# UPDATE GENERAL CONFIG VALUES
echo "# --> /home/btcrpcexplorer/.config/btc-rpc-explorer.env"
RPCPASSWORD=$(cat /mnt/hdd/${network}/${network}.conf | grep "^rpcpassword=" | cut -d "=" -f2)
echo "# updating BTCEXP_BITCOIND_PASS=${RPCPASSWORD}"
sudo sed -i "s/^BTCEXP_BITCOIND_PASS=.*/BTCEXP_BITCOIND_PASS=${RPCPASSWORD}/g" /home/btcrpcexplorer/.config/btc-rpc-explorer.env
# check if electrs is installed & running
if [ "${ElectRS}" == "on" ]; then