summaryrefslogtreecommitdiff
path: root/scripts/init/vyos-router
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-05 16:54:08 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-05 16:54:36 +0200
commit826aef312d5db61bcb8db722d692b5e4c5e241e8 (patch)
tree8461eef4d419bd2d7d87db1b7fc32a827eb6a3a8 /scripts/init/vyos-router
parentc239892750dd64ceccb489a2057c1aaf78acb15e (diff)
downloadvyatta-cfg-826aef312d5db61bcb8db722d692b5e4c5e241e8.tar.gz
vyatta-cfg-826aef312d5db61bcb8db722d692b5e4c5e241e8.zip
ipsec: T3719: fix "No such file or directory" warning
strongSwan expects the directories to be present - so we only clean out the config files instead of the entire folder structure.
Diffstat (limited to 'scripts/init/vyos-router')
-rwxr-xr-xscripts/init/vyos-router3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router
index 9225c1f..7150a5e 100755
--- a/scripts/init/vyos-router
+++ b/scripts/init/vyos-router
@@ -222,7 +222,8 @@ security_reset ()
# PPPoE
rm -f /etc/ppp/peers/pppoe* /etc/ppp/peers/wlm*
# IPSec
- rm -rf /etc/ipsec.conf /etc/ipsec.secrets /etc/swanctl
+ rm -rf /etc/ipsec.conf /etc/ipsec.secrets
+ find /etc/swanctl -type f | xargs rm -f
}
start ()