diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-11 08:23:43 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-11 08:23:43 -0300 |
commit | ac41b35988091a163b5a4e55dc358becdae3de7a (patch) | |
tree | 6a41d7b0aeba59113a0393dcb3d5bf7dfc717445 /config/stunnel/stunnel.inc | |
parent | c6e18d38e9ad1e0919bbdfc659f4b6b7ace1a87f (diff) | |
parent | 9b36d6b6c1f95574b15dff4e9e8ba794d4502a73 (diff) | |
download | pfsense-packages-ac41b35988091a163b5a4e55dc358becdae3de7a.tar.gz pfsense-packages-ac41b35988091a163b5a4e55dc358becdae3de7a.tar.bz2 pfsense-packages-ac41b35988091a163b5a4e55dc358becdae3de7a.zip |
Merge pull request #984 from doktornotor/patch-26
Diffstat (limited to 'config/stunnel/stunnel.inc')
-rw-r--r-- | config/stunnel/stunnel.inc | 4 |
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() { |