aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-05 21:45:19 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-10-05 21:45:19 -0400
commitb17fa842c602a82047bb357a81b013454935a047 (patch)
tree385650fedfeeaa428f3c4b4497f2795e50329c11 /config
parente740c9bb49b7ceb8d35884d81db049443557b31a (diff)
downloadpfsense-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.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php5
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 */