From 826aef312d5db61bcb8db722d692b5e4c5e241e8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 5 Aug 2021 16:54:08 +0200 Subject: 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. --- scripts/init/vyos-router | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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 () -- cgit v1.2.3