mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
tor: update to stable release w apt, restart CLN
This commit is contained in:
parent
639170e155
commit
beccc4be56
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user