mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user