summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/restart/vpn/node.def.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/restart/vpn/node.def.in b/templates/restart/vpn/node.def.in
index ad426bb..f2cb6cc 100644
--- a/templates/restart/vpn/node.def.in
+++ b/templates/restart/vpn/node.def.in
@@ -1,5 +1,5 @@
help: Restart IPsec VPN
-run: if [ -n "$(cli-shell-api returnActiveValues vpn ipsec)" ]; then
+run: if cli-shell-api existsEffective vpn ipsec; then
if pgrep charon > /dev/null
then
@SUDOUSRDIR@/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process