delete also litd macaroon

This commit is contained in:
rootzoll 2023-05-16 14:19:05 +02:00
parent 96887861c5
commit 95a5cc9230

View file

@ -92,6 +92,9 @@ if [ "$1" = "reset" ]; then
if [ "${keepOldMacaroons}" != "1" ]; then if [ "${keepOldMacaroons}" != "1" ]; then
sudo rm /home/bitcoin/.lnd/data/chain/"${network}"/"${chain}"net/macaroons.db sudo rm /home/bitcoin/.lnd/data/chain/"${network}"/"${chain}"net/macaroons.db
fi fi
echo "# delete also lit macaroons if present"
sudo rm /mnt/hdd/app-data/.lit/mainnet/lit.macaroon 2>/dev/null
fi fi
if [ ${resetTLS} -eq 1 ]; then if [ ${resetTLS} -eq 1 ]; then
@ -121,6 +124,9 @@ if [ "$1" = "reset" ]; then
/home/admin/config.scripts/lnd.credentials.sh sync "${CHAIN}" /home/admin/config.scripts/lnd.credentials.sh sync "${CHAIN}"
echo "# restart also litd if present (reboot advised)"
sudo systemctl restart litd 2>/dev/null
########################### ###########################
# SYNC # SYNC
########################### ###########################