summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/clear/vpn/ipsec-process/node.def8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/clear/vpn/ipsec-process/node.def b/templates/clear/vpn/ipsec-process/node.def
index c4e3637..cd50590 100644
--- a/templates/clear/vpn/ipsec-process/node.def
+++ b/templates/clear/vpn/ipsec-process/node.def
@@ -1,2 +1,6 @@
-help: Restart VPN
-run: sudo ipsec setup restart
+help: Restart VPN ipsec process
+run: if [ -f /etc/ipsec.conf ] && grep -q 'vyatta' /etc/ipsec.conf; then
+ sudo ipsec setup restart
+ else
+ echo VPN ipsec not configured
+ fi