aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 12:45:12 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 12:45:12 +0200
commit9642d274821a46447222673ddc757b1ebb390cb9 (patch)
tree3d1c090ea2950cec60a8ad6ead6bf5eabe32d081 /config
parent72a4b890c195d26391d3c31bce1448cb4bc0b44b (diff)
downloadpfsense-packages-9642d274821a46447222673ddc757b1ebb390cb9.tar.gz
pfsense-packages-9642d274821a46447222673ddc757b1ebb390cb9.tar.bz2
pfsense-packages-9642d274821a46447222673ddc757b1ebb390cb9.zip
stunnel.inc - remove useless config_(un)lock calls
This function does nothing but return.
Diffstat (limited to 'config')
-rw-r--r--config/stunnel/stunnel.inc4
1 files changed, 0 insertions, 4 deletions
diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc
index dd3eee5c..4398a0dc 100644
--- a/config/stunnel/stunnel.inc
+++ b/config/stunnel/stunnel.inc
@@ -122,7 +122,6 @@ function stunnel_delete($config) {
function stunnel_save($config) {
$GLOBALS['config']['installedpackages']['stunnelcerts']['savemsg']='';
conf_mount_rw();
- config_lock();
if (!file_exists(STUNNEL_ETCDIR))
@mkdir(STUNNEL_ETCDIR, 0755, true);
$fout = fopen(STUNNEL_ETCDIR . "/stunnel.conf","w");
@@ -148,7 +147,6 @@ function stunnel_save($config) {
}
fclose($fout);
conf_mount_ro();
- config_unlock();
system("/usr/local/etc/rc.d/stunnel.sh stop 2>/dev/null");
system("/usr/local/etc/rc.d/stunnel.sh start 2>/dev/null");
}
@@ -221,7 +219,6 @@ function stunnel_install() {
unlink_if_exists("/usr/local/etc/rc.d/stunnel");
conf_mount_rw();
- config_lock();
$fout = fopen(STUNNEL_ETCDIR . "/stunnel.conf","w");
fwrite($fout, "cert = " . STUNNEL_ETCDIR . "/stunnel.pem \n");
fwrite($fout, "chroot = /var/tmp/stunnel \n");
@@ -238,7 +235,6 @@ function stunnel_install() {
}
fclose($fout);
conf_mount_ro();
- config_unlock();
}
function stunnel_deinstall() {