From: Stefan Schantl Date: Thu, 7 Feb 2019 07:06:49 +0000 (+0100) Subject: update-ids-ruleset: Lock and Unlock the IDS page during runtime X-Git-Tag: v2.23-core131~117^2~57 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=5206a3358d18b8ec9b1ceca3e95a56516ae7b4ab;ds=sidebyside update-ids-ruleset: Lock and Unlock the IDS page during runtime Reference #11991 Signed-off-by: Stefan Schantl --- diff --git a/src/scripts/update-ids-ruleset b/src/scripts/update-ids-ruleset index d988d25566..14ea25ec6c 100644 --- a/src/scripts/update-ids-ruleset +++ b/src/scripts/update-ids-ruleset @@ -46,6 +46,9 @@ if(&IDS::checkdiskspace()) { exit 0; } +# Lock the IDS page. +&IDS::lock_ids_page(); + # Call the download function and gather the new ruleset. if(&IDS::downloadruleset()) { # Store error message for displaying in the WUI. @@ -61,6 +64,9 @@ if(&IDS::downloadruleset()) { # Set correct ownership for the rulesdir and files. &IDS::set_ownership("$IDS::rulespath"); +# Unlock the IDS page. +&IDS::unlock_ids_page(); + # Check if the IDS is running. if(&IDS::ids_is_running()) { # Call suricatactrl to perform a reload.