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/haproxy1_5/pkg/haproxy.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/haproxy1_5') diff --git a/config/haproxy1_5/pkg/haproxy.inc b/config/haproxy1_5/pkg/haproxy.inc index 135f2d4f..793c5c28 100644 --- a/config/haproxy1_5/pkg/haproxy.inc +++ b/config/haproxy1_5/pkg/haproxy.inc @@ -903,12 +903,12 @@ function haproxy_writeconf($configpath) { if (!isset($aliastable)) alias_make_table($config); $chroot_dir = "/tmp/haproxy_chroot"; // can contain socket to forward connection from backend to frontend. "/var/empty" - make_dirs($chroot_dir); + @mkdir($chroot_dir, 0755, true); $configfile = $configpath . "/haproxy.cfg"; rmdir_recursive($configpath); - make_dirs($configpath); + @mkdir($configpath, 0755, true); $a_global = &$config['installedpackages']['haproxy']; $a_frontends = &$config['installedpackages']['haproxy']['ha_backends']['item']; @@ -998,7 +998,7 @@ function haproxy_writeconf($configpath) { $certs = $frontend['ha_certificates']['item']; if (is_array($certs)){ if (count($certs) > 0){ - make_dirs($subfolder); + @mkdir($subfolder, 0755, true); foreach($certs as $cert){ haproxy_write_certificate_fullchain("$subfolder/{$cert['ssl_certificate']}.pem", $cert['ssl_certificate']); } -- cgit v1.2.3