]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/suricata/convert-snort
convert-snort: Fix logic for detecting enough free disk space.
[ipfire-2.x.git] / config / suricata / convert-snort
index ca650b149a212d9f0074297d78626fec96d8fd11..19aa38fbc3c667ba43b17945e72c67f8abfaf995 100644 (file)
@@ -231,6 +231,9 @@ if (-f $snort_rules_tarball) {
 } else {
        # Check if enought disk space is available.
        if(&IDS::checkdiskspace()) {
+               # Print error message.
+               print "Could not download ruleset - Not enough free diskspace available.\n";
+       } else {
                # Call the download function and grab the new ruleset.
                &IDS::downloadruleset();
        }