aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy1_5/pkg
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/haproxy1_5/pkg
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/haproxy1_5/pkg')
-rw-r--r--config/haproxy1_5/pkg/haproxy.inc6
1 files changed, 3 insertions, 3 deletions
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']);
}