genconfig: Delete backup if configs are identical
* Avoid accumulating noise.
This commit is contained in:
parent
a3f80e625f
commit
60671e6819
@ -52,3 +52,6 @@ port $port
|
|||||||
dev tun0
|
dev tun0
|
||||||
status /tmp/openvpn-status.log
|
status /tmp/openvpn-status.log
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Clean-up duplicate configs
|
||||||
|
diff -q "$bak" "$conf" && rm "$bak"
|
||||||
|
Loading…
Reference in New Issue
Block a user