aboutsummaryrefslogtreecommitdiffstats
path: root/config/denyhosts/denyhosts.inc
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-08-01 16:42:43 -0600
committermcrane <mctch@yahoo.com>2009-08-01 16:42:43 -0600
commitef3b11054f50bcb5040c3d9f5d666d35adb80f8b (patch)
treeddc969cc82a6a20d30da93a805d62aba5c5d6682 /config/denyhosts/denyhosts.inc
parentc4e8ce1f764a5687951821ca4810e48b05eaa8e0 (diff)
downloadpfsense-packages-ef3b11054f50bcb5040c3d9f5d666d35adb80f8b.tar.gz
pfsense-packages-ef3b11054f50bcb5040c3d9f5d666d35adb80f8b.tar.bz2
pfsense-packages-ef3b11054f50bcb5040c3d9f5d666d35adb80f8b.zip
denyhosts more installation adjustments
Diffstat (limited to 'config/denyhosts/denyhosts.inc')
-rw-r--r--config/denyhosts/denyhosts.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/config/denyhosts/denyhosts.inc b/config/denyhosts/denyhosts.inc
index 3a9114ad..75d6400e 100644
--- a/config/denyhosts/denyhosts.inc
+++ b/config/denyhosts/denyhosts.inc
@@ -49,7 +49,9 @@ function php_install_command()
{
global $config;
-
+ conf_mount_rw();
+ config_lock();
+
if (!is_dir('/usr/local/www/packages/')) {
exec("mkdir /usr/local/www/packages/");
}
@@ -160,7 +162,8 @@ function php_install_command()
//documentation purposes
//}
-
+ conf_mount_ro();
+ config_unlock();
}
@@ -168,6 +171,9 @@ function php_install_command()
function deinstall_command()
{
+ conf_mount_rw();
+ config_lock();
+
$hosts_allow = "#\n";
$hosts_allow .= "# hosts.allow access control file for \"tcp wrapped\" applications.\n";
$hosts_allow .= "#\n";
@@ -180,6 +186,8 @@ function deinstall_command()
exec("pkg_delete denyhosts");
exec("rm -R /usr/local/www/packages/denyhosts/");
+ conf_mount_ro();
+ config_unlock();
}
?> \ No newline at end of file