aboutsummaryrefslogtreecommitdiffstats
path: root/config/phpservice
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 14:59:36 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 14:59:36 +0200
commit56d89c1cd462887090177502f0a6f36690c1a476 (patch)
tree27b2fa1eb675948a90df1219dd61b68482463f08 /config/phpservice
parent2ec9434995e8d818829a1e2a4be2c174ba4e6138 (diff)
downloadpfsense-packages-56d89c1cd462887090177502f0a6f36690c1a476.tar.gz
pfsense-packages-56d89c1cd462887090177502f0a6f36690c1a476.tar.bz2
pfsense-packages-56d89c1cd462887090177502f0a6f36690c1a476.zip
remove useless config_(un)lock calls round two
Diffstat (limited to 'config/phpservice')
-rw-r--r--config/phpservice/phpservice.inc11
1 files changed, 3 insertions, 8 deletions
diff --git a/config/phpservice/phpservice.inc b/config/phpservice/phpservice.inc
index 6236d0b6..ec2b9bef 100644
--- a/config/phpservice/phpservice.inc
+++ b/config/phpservice/phpservice.inc
@@ -67,8 +67,7 @@ function phpservice_sync_package_php()
if($config['installedpackages']['phpservice']['config'] != "") {
conf_mount_rw();
- config_unlock();
-
+
$tmp = "<?php\n";
$tmp .= "\n";
$tmp .= "// Set time limit to indefinite execution\n";
@@ -169,7 +168,6 @@ function phpservice_install_command()
global $config;
conf_mount_rw();
- config_lock();
if (!is_dir('/usr/local/www/packages/')) {
exec("mkdir /usr/local/www/packages/");
@@ -205,8 +203,7 @@ function phpservice_install_command()
//}
conf_mount_ro();
- config_unlock();
-
+
}
@@ -214,15 +211,13 @@ function phpservice_deinstall_command()
{
conf_mount_rw();
- config_lock();
$handle = popen("/usr/local/etc/rc.d/phpservice.sh stop", "r");
unlink_if_exists("/usr/local/pkg/phpservice.xml");
unlink_if_exists("/usr/local/pkg/phpservice.inc");
unlink_if_exists("/usr/local/www/phpservice.inc");
unlink_if_exists("/usr/local/etc/rc.d/phpservice.sh");
conf_mount_ro();
- config_unlock();
-
+
}
?>