MKDEFAULT: restart Specter for the new network

This commit is contained in:
openoms
2021-06-02 09:11:31 +01:00
parent 81cd8f042b
commit 21a1ed0f1e

View File

@@ -184,6 +184,10 @@ case $CHOICE in
sudo sed -i "s/^chain=.*/chain=${newchain}/g" /mnt/hdd/raspiblitz.conf
echo "# OK - Set chain=${newchain} in /mnt/hdd/raspiblitz.conf"
sudo /home/admin/config.scripts/lnd.credentials.sh sync
if grep -Eq "^specter=on" /mnt/hdd/raspiblitz.conf; then
echo "# Restart Specter on $CHAIN"
sudo systemctl restart cryptoadvance-specter.service
fi
echo
echo "Press ENTER to return to main menu."
read key