mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
tor: update to stable release w apt, restart CLN
This commit is contained in:
@@ -286,7 +286,7 @@ if [ "${action}" = "update" ]; then
|
|||||||
sudo systemctl start tor
|
sudo systemctl start tor
|
||||||
echo "# Installed $(tor --version)"
|
echo "# Installed $(tor --version)"
|
||||||
;;
|
;;
|
||||||
*) sudo apt update -y && sudo apt upgrade -y tor;;
|
*) sudo apt update && sudo apt install tor && sudo systemctl restart tor;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
exit
|
exit
|
||||||
|
@@ -199,15 +199,21 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
update)
|
update)
|
||||||
/home/admin/config.scripts/tor.install.sh update source
|
/home/admin/config.scripts/tor.install.sh update
|
||||||
if [ "$(sudo systemctl is-active lnd | grep -c "active")" -gt 0 ];then
|
if sudo systemctl is-active lnd ;then
|
||||||
echo "# LND needs to be restarted"
|
echo "# LND will be restarted"
|
||||||
sudo systemctl restart lnd
|
sudo systemctl restart lnd
|
||||||
sudo systemctl restart tlnd 2>/dev/null
|
sudo systemctl restart tlnd 2>/dev/null
|
||||||
sudo systemctl restart slnd 2>/dev/null
|
sudo systemctl restart slnd 2>/dev/null
|
||||||
sleep 10
|
sleep 10
|
||||||
lncli unlock
|
lncli unlock
|
||||||
fi
|
fi
|
||||||
|
if sudo systemctl is-active lightningd; then
|
||||||
|
echo "# CLN will be restarted"
|
||||||
|
sudo systemctl restart lightningd
|
||||||
|
sudo systemctl restart tlightningd 2>/dev/null
|
||||||
|
sudo systemctl restart slightningd 2>/dev/null
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*) usage
|
*) usage
|
||||||
|
Reference in New Issue
Block a user