From 60671e6819bb3b20b51d0271479110271102df71 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 1 Jul 2014 08:30:28 -0700 Subject: [PATCH] genconfig: Delete backup if configs are identical * Avoid accumulating noise. --- bin/ovpn_genconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ovpn_genconfig b/bin/ovpn_genconfig index 3bf1f4c..f8b261e 100755 --- a/bin/ovpn_genconfig +++ b/bin/ovpn_genconfig @@ -52,3 +52,6 @@ port $port dev tun0 status /tmp/openvpn-status.log EOF + +# Clean-up duplicate configs +diff -q "$bak" "$conf" && rm "$bak"