summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-05-23 19:52:22 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-05-23 19:52:22 -0700
commit3aeb97f7c9b88740c08300336872a29e902c9642 (patch)
treefad99b79e752147ce83e20c7ef22115492be3863
parent0ef71215989006f084239ba55ae8edefeb4adac7 (diff)
downloadvyatta-op-vpn-3aeb97f7c9b88740c08300336872a29e902c9642.tar.gz
vyatta-op-vpn-3aeb97f7c9b88740c08300336872a29e902c9642.zip
Fix 3285: CLI command does not restart VPN: run clear vpn ipsec-process
-rw-r--r--templates/clear/vpn/ipsec-process/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/clear/vpn/ipsec-process/node.def b/templates/clear/vpn/ipsec-process/node.def
index d32af04..0f7e233 100644
--- a/templates/clear/vpn/ipsec-process/node.def
+++ b/templates/clear/vpn/ipsec-process/node.def
@@ -1,5 +1,5 @@
help: Restart VPN ipsec process
-run: if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer ] && [ -n `ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer/` ] ; then
+run: if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer ] && [ -n "`ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer/`" ] ; then
sudo /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process
else
echo VPN ipsec not configured