tor: update to stable release w apt, restart CLN

This commit is contained in:
openoms 2022-06-20 07:35:41 +01:00
parent 639170e155
commit beccc4be56
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65
2 changed files with 10 additions and 4 deletions

View File

@ -286,7 +286,7 @@ if [ "${action}" = "update" ]; then
sudo systemctl start tor
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
echo
exit

View File

@ -199,15 +199,21 @@ EOF
update)
/home/admin/config.scripts/tor.install.sh update source
if [ "$(sudo systemctl is-active lnd | grep -c "active")" -gt 0 ];then
echo "# LND needs to be restarted"
/home/admin/config.scripts/tor.install.sh update
if sudo systemctl is-active lnd ;then
echo "# LND will be restarted"
sudo systemctl restart lnd
sudo systemctl restart tlnd 2>/dev/null
sudo systemctl restart slnd 2>/dev/null
sleep 10
lncli unlock
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