aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 14:53:32 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 14:53:32 +0200
commit0b4f7dcbafb5b4d612c2b4cd45b5733387247cdd (patch)
tree237b74911a09616159daee9340e8a80ba83e7470 /config
parent67bb02fcf387d6b4af5ac0f72e9ca2572f020151 (diff)
downloadpfsense-packages-0b4f7dcbafb5b4d612c2b4cd45b5733387247cdd.tar.gz
pfsense-packages-0b4f7dcbafb5b4d612c2b4cd45b5733387247cdd.tar.bz2
pfsense-packages-0b4f7dcbafb5b4d612c2b4cd45b5733387247cdd.zip
remove useless config_(un)lock calls round two
Diffstat (limited to 'config')
-rw-r--r--config/vhosts/vhosts.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/config/vhosts/vhosts.inc b/config/vhosts/vhosts.inc
index 1958632e..4cbbb61d 100644
--- a/config/vhosts/vhosts.inc
+++ b/config/vhosts/vhosts.inc
@@ -106,7 +106,6 @@ function vhosts_sync_package_php()
if($config['installedpackages']['vhosts']['config'] != "") {
conf_mount_rw();
- config_unlock();
//sort the vhosts array
$vhostarray = $config['installedpackages']['vhosts']['config'];
@@ -718,7 +717,6 @@ function vhosts_install_command() {
global $config;
conf_mount_rw();
- config_lock();
if (!is_dir('/usr/local/www/packages/')) {
exec("mkdir /usr/local/www/packages/");
@@ -794,15 +792,13 @@ function vhosts_install_command() {
//}
conf_mount_ro();
- config_unlock();
-
+
}
function vhosts_deinstall_command()
{
conf_mount_rw();
- config_lock();
$handle = popen("/usr/local/etc/rc.d/vhosts.sh stop", "r");
unlink_if_exists("/usr/local/pkg/vhosts.xml");
unlink_if_exists("/usr/local/pkg/vhosts.inc");
@@ -813,7 +809,6 @@ function vhosts_deinstall_command()
exec("rm -R /usr/local/www/packages/vhosts");
exec("rm -R /usr/local/php5");
conf_mount_ro();
- config_unlock();
}
?>