]> git.ipfire.org Git - ipfire-2.x.git/commit
CU185-update.sh: Add drop hostile in & out logging entries if not already present
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 25 Mar 2024 17:44:56 +0000 (18:44 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Mar 2024 10:55:32 +0000 (10:55 +0000)
commit3d947e6e6b9f492fa0a12b40db0495b6eac6d967
tree53606b3dd28639231254573cc1dcdf767b47f827
parent2e94953dd40134d05d3dd93c9c3e125f5ec427f9
CU185-update.sh: Add drop hostile in & out logging entries if not already present

- This v2 patch corrects that the previous script was looking for =on. If a user had
   modified the preferences to change it to =off then the script would have resulted in
   both =on and =off versions being in the settings file.
- This patch ensures that those people who updated to CU184 before the CU184-update.sh
   patch fix to add the logging entries was added will get their optionsfw settings file
   correctly updated with CU185
- This only adds the LOGDROPHOSTILEIN & LOGDROPHOSTILEOUT entries if they do not already
   exist in the optionsfw settings file.
- This change also does the check for LOGDROPHOSTILEIN and LOGDROPHOSTILEOUT as two
   separate checks and then runs the firewall update command

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/185/update.sh