From 4fd2f5c72a1b8893fc416919db36d34f8caab5e0 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 10 May 2014 23:44:41 +0000 Subject: [PATCH] Update the file permissions after they are copied --- resources/classes/install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/classes/install.php b/resources/classes/install.php index 8cac85863e..b3e7560678 100644 --- a/resources/classes/install.php +++ b/resources/classes/install.php @@ -111,11 +111,11 @@ include "root.php"; } else { if ($src_dir != "/conf") { - mkdir($src_dir, 0755, true); + mkdir($src_dir, 0774, true); } } //make sure the conf directory exists - if (!mkdir($this->switch_conf_dir, 0755, true)) { + if (!mkdir($this->switch_conf_dir, 0774, true)) { //throw new Exception("Failed to create the switch conf directory '".$this->switch_conf_dir."'. "); } //copy resources/templates/conf to the freeswitch conf dir @@ -148,6 +148,7 @@ include "root.php"; $this->recursive_copy($src_dir, $dst_dir, "-n"); unset($src_dir, $dst_dir); } + chmod($dst_dir, 0774); } } @@ -194,6 +195,7 @@ include "root.php"; } } } + chmod($dst_dir, 0664); } } }