backup.pl: Run snort to suricata converter when a backup gets restored.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-01-29 08:40:34 +01:00
parent 85a62b0523
commit 8c27372438

View File

@@ -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
}