fix passwordB change for electrs #2861

This commit is contained in:
openoms 2022-01-02 20:45:43 +00:00
parent 17c1d707cd
commit e6772d8ab8
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65

View file

@ -264,7 +264,7 @@ EOF
if [ "${ElectRS}" == "on" ]; then
echo "# changing the RPC password for ELECTRS"
RPC_USER=$(cat /mnt/hdd/bitcoin/bitcoin.conf | grep rpcuser | cut -c 9-)
sudo sed -i "s/^cookie = \"$RPC_USER.*\"/cookie = \"$RPC_USER:${newPassword}\"/g" /home/electrs/.electrs/config.toml
sudo sed -i "s/^auth = \"$RPC_USER.*\"/auth = \"$RPC_USER:${newPassword}\"/g" /home/electrs/.electrs/config.toml
fi
# BTC-RPC-Explorer