genconfig: Delete backup if configs are identical

* Avoid accumulating noise.
This commit is contained in:
Kyle Manna 2014-07-01 08:30:28 -07:00
parent a3f80e625f
commit 60671e6819

View File

@ -52,3 +52,6 @@ port $port
dev tun0
status /tmp/openvpn-status.log
EOF
# Clean-up duplicate configs
diff -q "$bak" "$conf" && rm "$bak"