diff --git a/home.admin/config.scripts/blitz.setpassword.sh b/home.admin/config.scripts/blitz.setpassword.sh index 3aec5dc31..07a930efd 100644 --- a/home.admin/config.scripts/blitz.setpassword.sh +++ b/home.admin/config.scripts/blitz.setpassword.sh @@ -206,8 +206,12 @@ elif [ "${abcd}" = "b" ]; then sed -i "s/^${network}d.rpcpass=.*/${network}d.rpcpass=${newPassword}/g" /home/admin/.lnd/lnd.conf 2>/dev/null # RTL - keep settings from current RTL-Config.json - if [ "${rtlWebinterface}" = "on" ]; then + if [ "${rtlWebinterface}" == "on" ]; then + echo "# changing RTL password" cp /home/admin/RTL/RTL-Config.json /home/admin/RTL/backup-RTL-Config.json + # remove hashed old password + sed -i "/\b\(multiPassHashed\)\b/d" ./RTL-Config.json + # set new password chmod 600 /home/admin/RTL/RTL-Config.json || exit 1 node > /home/admin/RTL/RTL-Config.json </dev/null fi # BTC-RPC-Explorer if [ "${BTCRPCexplorer}" = "on" ]; then + echo "# changing BTCRPCEXPLORER password" sed -i "s/^BTCEXP_BITCOIND_URI=$network:\/\/$RPC_USER:.*@127.0.0.1:8332?timeout=10000/BTCEXP_BITCOIND_URI=$network:\/\/$RPC_USER:${newPassword}@127.0.0.1:8332\?timeout=10000/g" /home/bitcoin/.config/btc-rpc-explorer.env 2>/dev/null sed -i "s/^BTCEXP_BITCOIND_PASS=.*/BTCEXP_BITCOIND_PASS=${newPassword}/g" /home/bitcoin/.config/btc-rpc-explorer.env 2>/dev/null sed -i "s/^BTCEXP_BASIC_AUTH_PASSWORD=.*/BTCEXP_BASIC_AUTH_PASSWORD=${newPassword}/g" /home/bitcoin/.config/btc-rpc-explorer.env 2>/dev/null fi # BTCPayServer - if [ "${BTCPayServer}" = "on" ]; then + if [ "${BTCPayServer}" == "on" ]; then + echo "# changing BTCPAYSERVER password" sed -i "s/^btc.rpc.password=.*/btc.rpc.password=${newPassword}/g" /home/btcpay/.nbxplorer/Main/settings.config 2>/dev/null fi diff --git a/home.admin/config.scripts/lnd.autounlock.sh b/home.admin/config.scripts/lnd.autounlock.sh index ab2b1e579..326a3dfa0 100755 --- a/home.admin/config.scripts/lnd.autounlock.sh +++ b/home.admin/config.scripts/lnd.autounlock.sh @@ -1,7 +1,7 @@ #!/bin/bash # requests missing in dietpi -sudo pip install requests +sudo pip install requests 2>/dev/null # command info if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then