]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/scripts/update-ids-ruleset
update-ids-ruleset: Release ids_page_lock when the downloader fails.
[ipfire-2.x.git] / src / scripts / update-ids-ruleset
index 14ea25ec6ce7106fcf2ef7495535e5b1d0dfb2ae..956c3a1f5d406f436fb6955643b66c608aae30c0 100644 (file)
@@ -54,10 +54,16 @@ if(&IDS::downloadruleset()) {
        # Store error message for displaying in the WUI.
        &IDS::_store_error_message("$Lang::tr{'could not download latest updates'}");
 
+       # Unlock the IDS page.
+       &IDS::unlock_ids_page();
+
        # Exit.
        exit 0;
 }
 
+# Set correct ownership for the downloaded tarball.
+&IDS::set_ownership("$IDS::rulestarball");
+
 # Call oinkmaster to alter the ruleset.
 &IDS::oinkmaster();