diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-10-05 21:45:19 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-10-05 21:45:19 -0400 |
commit | b17fa842c602a82047bb357a81b013454935a047 (patch) | |
tree | 385650fedfeeaa428f3c4b4497f2795e50329c11 | |
parent | e740c9bb49b7ceb8d35884d81db049443557b31a (diff) | |
download | pfsense-packages-b17fa842c602a82047bb357a81b013454935a047.tar.gz pfsense-packages-b17fa842c602a82047bb357a81b013454935a047.tar.bz2 pfsense-packages-b17fa842c602a82047bb357a81b013454935a047.zip |
Don't remount file system R/O during post-install rules update.
-rwxr-xr-x | config/snort/snort_check_for_rule_updates.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |