diff options
author | mcrane <mctch@yahoo.com> | 2009-08-01 16:42:43 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-08-01 16:42:43 -0600 |
commit | ef3b11054f50bcb5040c3d9f5d666d35adb80f8b (patch) | |
tree | ddc969cc82a6a20d30da93a805d62aba5c5d6682 /config | |
parent | c4e8ce1f764a5687951821ca4810e48b05eaa8e0 (diff) | |
download | pfsense-packages-ef3b11054f50bcb5040c3d9f5d666d35adb80f8b.tar.gz pfsense-packages-ef3b11054f50bcb5040c3d9f5d666d35adb80f8b.tar.bz2 pfsense-packages-ef3b11054f50bcb5040c3d9f5d666d35adb80f8b.zip |
denyhosts more installation adjustments
Diffstat (limited to 'config')
-rw-r--r-- | config/denyhosts/denyhosts.inc | 12 | ||||
-rw-r--r-- | config/denyhosts/denyhosts.xml | 4 |
2 files changed, 12 insertions, 4 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 diff --git a/config/denyhosts/denyhosts.xml b/config/denyhosts/denyhosts.xml index 0a349442..4d0799ee 100644 --- a/config/denyhosts/denyhosts.xml +++ b/config/denyhosts/denyhosts.xml @@ -62,9 +62,9 @@ <text>Settings</text> <url>/packages/denyhosts/denyhosts_log.php</url> <active/> - </tab> + </tab> </tabs> - <configpath>installedpackages->package->$packagename->configuration->denyhosts</configpath> + <configpath>installedpackages->package->denyhosts</configpath> <additional_files_needed> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> |