From b17fa842c602a82047bb357a81b013454935a047 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Sun, 5 Oct 2014 21:45:19 -0400 Subject: Don't remount file system R/O during post-install rules update. --- config/snort/snort_check_for_rule_updates.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index d94d32be..975644f1 100755 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -823,6 +823,11 @@ if ($pkg_interface <> "console") update_status(gettext("The Rules update has finished...")); log_error(gettext("[Snort] The Rules update has finished.")); error_log(gettext("The Rules update has finished. Time: " . date("Y-m-d H:i:s"). "\n\n"), 3, $snort_rules_upd_log); + +// Remount filesystem read-only unless we are in package post-install. +// The post-install code will remount read-only when it completes. +if (!$g['snort_postinstall']) + conf_mount_ro(); conf_mount_ro(); /* Restore the state of $pkg_interface */ -- cgit v1.2.3