From 1943a248f84a1ea05ac79a29d52ab4f2e975e3d5 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 29 Sep 2021 03:42:15 -0400 Subject: keycopy.sh: forget about old config --- keycopy.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/keycopy.sh b/keycopy.sh index f9ebbb9..f7779b4 100644 --- a/keycopy.sh +++ b/keycopy.sh @@ -23,24 +23,9 @@ nocomments() sed 's/#.*//; /^ *$/d' } - -test_old_config() -{ - ipsec stop - rm -f /etc/swanctl/conf.d/andy.conf - cp ipsec.conf /etc/ - nocomments < ipsec.conf - ipsec start - sleep 2 - ipsec listpubkeys - ipsec up andy - ipsec stop -} - test_new_config() { ipsec stop - cp -T ipsec.conf.empty /etc/ipsec.conf cp andy.conf /etc/swanctl/conf.d/ nocomments < andy.conf ipsec start @@ -48,9 +33,7 @@ test_new_config() swanctl -c ipsec listpubkeys ipsec up andy - ipsec stop } -test_old_config test_new_config -- cgit v1.2.3