diff options
Diffstat (limited to 'config/denyhosts')
-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> |