From: Stefan Schantl Date: Tue, 29 Jan 2019 07:40:34 +0000 (+0100) Subject: backup.pl: Run snort to suricata converter when a backup gets restored. X-Git-Tag: v2.23-core131~117^2~103 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=8c27372438dd267648cba48b86d85a594f14be1c backup.pl: Run snort to suricata converter when a backup gets restored. Signed-off-by: Stefan Schantl --- diff --git a/config/backup/backup.pl b/config/backup/backup.pl index 3accbcfff8..5737740e56 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -129,6 +129,15 @@ restore_backup() { # Convert old OpenVPN CCD files (CN change, Core Update 75) convert-ovpn + # Snort to suricata converter. + if [ -d "/var/ipfire/snort" ]; then + # Run converter + convert-snort + + # Remove old configuration directory. + rm -rf "/var/ipfire/snort" + fi + return 0 }