From 32894ffed6761b72bc049dd55118ede78155937e Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 29 Sep 2023 17:47:36 +0100 Subject: T5625: allow "restart vpn" to work when ipsec-interfaces is not set --- templates/restart/vpn/node.def.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/restart/vpn/node.def.in b/templates/restart/vpn/node.def.in index 4366d19..ad426bb 100644 --- a/templates/restart/vpn/node.def.in +++ b/templates/restart/vpn/node.def.in @@ -1,6 +1,5 @@ help: Restart IPsec VPN -run: if [ -n "$(cli-shell-api returnActiveValues \ - vpn ipsec ipsec-interfaces interface)" ]; then +run: if [ -n "$(cli-shell-api returnActiveValues vpn ipsec)" ]; then if pgrep charon > /dev/null then @SUDOUSRDIR@/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process -- cgit v1.2.3