summaryrefslogtreecommitdiff
path: root/templates/clear/vpn/ipsec-process/node.def
blob: 0f7e233a25ecf413854dd1d64ed33a87eaf2f453 (plain)
1
2
3
4
5
6
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
        sudo /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process
     else
        echo VPN ipsec not configured
     fi