]> git.ipfire.org Git - thirdparty/suricata-update.git/commit
config: prefer configuration specified files 330/head
authorJason Ish <jason.ish@oisf.net>
Tue, 4 Jul 2023 18:56:08 +0000 (12:56 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 4 Jul 2023 22:23:54 +0000 (16:23 -0600)
commitd2f2ca56f64c2c16e11fe81f86c2a5b069514086
treee7b210c198dcdf3a256912c76c0e08a6d42d1476
parent1a870c0b2624b87166d8b3d5a4ec3ff0260cb2fb
config: prefer configuration specified files

Suricata-Update was preferring the existence of "disable.conf" in
$sysconfdir over it be specified in the update.yaml.

Refactor the auto-conf to only search and apply the default
$sysconfdir files if they don't already exist in the config.

Additonally, now that the default, if not set or found will be none,
log a warning if a specific configuration file is not found instead of
silently ignoring.

Ticket: #6172
suricata/update/config.py
suricata/update/main.py