mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
update rpc password
This commit is contained in:
@@ -113,8 +113,12 @@ if [ "$1" = "prestart" ]; then
|
|||||||
|
|
||||||
echo "## btc-rpc-explorer.service PRESTART CONFIG"
|
echo "## btc-rpc-explorer.service PRESTART CONFIG"
|
||||||
|
|
||||||
echo "# TODO: check generel config ..."
|
# UPDATE GENERAL CONFIG VALUES
|
||||||
date > /home/btcrpcexplorer/prestart.log
|
|
||||||
|
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
|
# check if electrs is installed & running
|
||||||
if [ "${ElectRS}" == "on" ]; then
|
if [ "${ElectRS}" == "on" ]; then
|
||||||
|
Reference in New Issue
Block a user