From 616b3aa210d815399191c59a70d46512f861d431 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 5 May 2015 11:51:17 -0300 Subject: Replace all calls to make_dirs() by mkdir with mode 0755 and recursive enabled --- config/stunnel/stunnel.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/stunnel') 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"; -- cgit v1.2.3