mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
update-ids-ruleset: Set correct ownership for the rulestarball.
The script usualy will be executed by cron which will start it with root permissions, so the downloaded tarball is owned by this user. This has to be changed to the user which runs the WUI (nobody:nobody) to allow, changing the ruleset to an other one and to display the ruleset area. Fixes #12066 Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
20c7552e0d
commit
50b35e0f8f
@@ -58,6 +58,9 @@ if(&IDS::downloadruleset()) {
|
||||
exit 0;
|
||||
}
|
||||
|
||||
# Set correct ownership for the downloaded tarball.
|
||||
&IDS::set_ownership("$IDS::rulestarball");
|
||||
|
||||
# Call oinkmaster to alter the ruleset.
|
||||
&IDS::oinkmaster();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user