From c021a2b3081aa369acd8c4d4228d49145ef9a3af Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 25 Aug 2015 09:26:23 +0200 Subject: Remove useless remount calls These are dealt with by install_package() from pkg-utils.inc. Also, the nrpe2_custom_php_deinstall_command() function was completely useless, doing nothing else but remounts. --- config/nrpe2/nrpe2.inc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/nrpe2/nrpe2.inc b/config/nrpe2/nrpe2.inc index b5e6a7d9..08aeb5c4 100644 --- a/config/nrpe2/nrpe2.inc +++ b/config/nrpe2/nrpe2.inc @@ -51,7 +51,6 @@ define('NRPE_RCFILE', '/usr/local/etc/rc.d/nrpe2.sh'); function nrpe2_custom_php_install_command() { global $g, $config; - conf_mount_rw(); $NRPE_BASE = NRPE_BASE; $NRPE_CONFIG_DIR = NRPE_CONFIG_DIR; @@ -159,14 +158,6 @@ EOD; fclose($fd); chmod(NRPE_RCFILE, 0755); - conf_mount_ro(); -} - -function nrpe2_custom_php_deinstall_command() { - global $g, $config; - conf_mount_rw(); - - conf_mount_ro(); } function nrpe2_custom_php_write_config() { -- cgit v1.2.3