diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-05 16:54:08 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-05 16:54:36 +0200 |
commit | 826aef312d5db61bcb8db722d692b5e4c5e241e8 (patch) | |
tree | 8461eef4d419bd2d7d87db1b7fc32a827eb6a3a8 /scripts/init/vyos-router | |
parent | c239892750dd64ceccb489a2057c1aaf78acb15e (diff) | |
download | vyatta-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-x | scripts/init/vyos-router | 3 |
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 () |