From fb4ae17aabc42067f11488f843a9bc910a07e512 Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 11 Oct 2009 16:57:41 -0400 Subject: Add rw/ro calls to NRPE config write. Should fix on nano --- config/nrpe2/nrpe2.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') diff --git a/config/nrpe2/nrpe2.inc b/config/nrpe2/nrpe2.inc index e9b72a8a..48a9b480 100644 --- a/config/nrpe2/nrpe2.inc +++ b/config/nrpe2/nrpe2.inc @@ -141,6 +141,7 @@ function nrpe2_custom_php_deinstall_command() function nrpe2_custom_php_write_config() { global $g, $config; + conf_mount_rw(); foreach ($config['installedpackages']['nrpe2']['config'][0]['row'] as $cmd) { @@ -169,6 +170,7 @@ connection_timeout=300 EOD; fwrite($fd, $nrpe_cfg); fclose($fd); + conf_mount_ro(); } function nrpe2_custom_php_service() -- cgit v1.2.3