]> git.ipfire.org Git - ipfire-2.x.git/commit
update-ipblocklists: Fix loading new blocklists after update
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 28 Mar 2023 16:05:42 +0000 (18:05 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 4 Apr 2023 19:59:23 +0000 (19:59 +0000)
commit41d3d33dde1312d6e1556d3279d9c09d925b7452
treebb6857ab5759f9eff5a01721a6a5a5de9ccc0780
parenta84b9ed2feb926681ad94273d8c2efc5d7b71b4f
update-ipblocklists: Fix loading new blocklists after update

* The script needs to run with root permissions in order to
  do the ipset operations. So remove code to drop the permissions
  on startup.

* Adjust execute calls to use the proper functions from
  general functions.

* Add some code to set the correct ownership (nobody:nobody) for
  changed files during script runtime.

Fixes #13072.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ipblocklist-functions.pl
src/scripts/update-ipblocklists