]> git.ipfire.org Git - ipfire-2.x.git/commit
backup.pl: Fixes bug#13404 - Clear out OpenVPN certs before doing restore
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 26 Feb 2024 15:05:01 +0000 (16:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Feb 2024 16:40:53 +0000 (16:40 +0000)
commitc790899f7383dae7f734a44c1570da1c9246b778
tree2435b63df55e427d22b0c8576d534675242305c5
parentf433fdcd90cb406f1095e6c3d2fa6af7cd85efb3
backup.pl: Fixes bug#13404 - Clear out OpenVPN certs before doing restore

- Existing situation is if four new client connections are created and then it is decided
   to restore to an earlier stage the new certficates will be in the certs directory but
   not usable from the WUI page as they are no longer shown in the client connection table
   as that now shows the ones from the restored backup.
- This patch clears the /var/ipfire/ovpn/certs/ directory before restoring the contents
   of the backup so that the certs directory only holds what was in the backup.

Fixes: Bug#13404
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/backup/backup.pl