aboutsummaryrefslogtreecommitdiffstats
path: root/config/stunnel
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-05 11:51:17 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-05 17:19:09 -0300
commit616b3aa210d815399191c59a70d46512f861d431 (patch)
tree99080b15f6fae5255f5ce14506b54f29663b6b26 /config/stunnel
parentf7467fdc76c95b4d26fa524bd154b2e4d3fc029b (diff)
downloadpfsense-packages-616b3aa210d815399191c59a70d46512f861d431.tar.gz
pfsense-packages-616b3aa210d815399191c59a70d46512f861d431.tar.bz2
pfsense-packages-616b3aa210d815399191c59a70d46512f861d431.zip
Replace all calls to make_dirs() by mkdir with mode 0755 and recursive enabled
Diffstat (limited to 'config/stunnel')
-rw-r--r--config/stunnel/stunnel.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc
index 571cfb01..fdc72bf2 100644
--- a/config/stunnel/stunnel.inc
+++ b/config/stunnel/stunnel.inc
@@ -201,7 +201,7 @@ function stunnel_install() {
safe_mkdir("/usr/local/etc/stunnel");
system("/usr/bin/openssl req -new -x509 -days 365 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem 2>/dev/null");
chmod("/usr/local/etc/stunnel/stunnel.pem", 0600);
- make_dirs("/var/tmp/stunnel/var/tmp/run/stunnel");
+ @mkdir("/var/tmp/stunnel/var/tmp/run/stunnel", 0755, true);
system("/usr/sbin/chown -R stunnel:stunnel /var/tmp/stunnel");
$_rcfile['file']='stunnel.sh';
$_rcfile['start'].="/usr/local/bin/stunnel /usr/local/etc/stunnel/stunnel.conf \n\t";