mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
I got the permissions wrong (#1616)
it should have been in octal mod (leading 0) also updated the fax application as it needs the stickygid too
This commit is contained in:
@@ -99,7 +99,7 @@ include "root.php";
|
||||
|
||||
//make sure the conf directory exists
|
||||
if (!is_dir($this->global_settings->switch_conf_dir())) {
|
||||
if (!mkdir($this->global_settings->switch_conf_dir(), 2774, true)) {
|
||||
if (!mkdir($this->global_settings->switch_conf_dir(), 02770, true)) {
|
||||
throw new Exception("Failed to create the switch conf directory '".$this->global_settings->switch_conf_dir()."'. ");
|
||||
}
|
||||
}
|
||||
@@ -117,9 +117,9 @@ include "root.php";
|
||||
unset($src_dir, $dst_dir);
|
||||
}
|
||||
$fax_dir = join( DIRECTORY_SEPARATOR, array($this->global_settings->switch_storage_dir(), 'fax'));
|
||||
if (!is_readable($fax_dir)) { mkdir($fax_dir,2777,true); }
|
||||
if (!is_readable($fax_dir)) { mkdir($fax_dir,02770,true); }
|
||||
$voicemail_dir = join( DIRECTORY_SEPARATOR, array($this->global_settings->switch_storage_dir(), 'voicemail'));
|
||||
if (!is_readable($voicemail_dir)) { mkdir($voicemail_dir,2777,true); }
|
||||
if (!is_readable($voicemail_dir)) { mkdir($voicemail_dir,02770,true); }
|
||||
|
||||
//write the xml_cdr.conf.xml file
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/xml_cdr")) {
|
||||
|
||||
Reference in New Issue
Block a user