summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-02-17 15:27:35 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-02-17 15:27:35 -0800
commit84fe6d4b1e8fe5c8b9530f13bfcf2167ada322d1 (patch)
tree6aab88078dac7edc70f81a3012c12933de5424c0 /templates
parent97181aa77c9a37607947373e3c426d70fcbc8abb (diff)
downloadvyatta-op-vpn-84fe6d4b1e8fe5c8b9530f13bfcf2167ada322d1.tar.gz
vyatta-op-vpn-84fe6d4b1e8fe5c8b9530f13bfcf2167ada322d1.zip
Fix 2838 Clearing VPN process starts VPN, even if not configured
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