Update the file permissions after they are copied

This commit is contained in:
Mark Crane 2014-05-10 23:44:41 +00:00
parent 9cd2c50b58
commit 4fd2f5c72a
1 changed files with 4 additions and 2 deletions

View File

@ -111,11 +111,11 @@ include "root.php";
} }
else { else {
if ($src_dir != "/conf") { if ($src_dir != "/conf") {
mkdir($src_dir, 0755, true); mkdir($src_dir, 0774, true);
} }
} }
//make sure the conf directory exists //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."'. "); //throw new Exception("Failed to create the switch conf directory '".$this->switch_conf_dir."'. ");
} }
//copy resources/templates/conf to the freeswitch 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"); $this->recursive_copy($src_dir, $dst_dir, "-n");
unset($src_dir, $dst_dir); unset($src_dir, $dst_dir);
} }
chmod($dst_dir, 0774);
} }
} }
@ -194,6 +195,7 @@ include "root.php";
} }
} }
} }
chmod($dst_dir, 0664);
} }
} }
} }