Use FreeSWITCH to run mkdir so it inherits its own user and group permissions.

This commit is contained in:
markjcrane
2016-06-28 15:18:40 -06:00
parent bc46191440
commit bd23c78670
16 changed files with 60 additions and 36 deletions

View File

@@ -145,19 +145,19 @@ else {
//make sure the directories exist
if (!is_dir($_SESSION['switch']['storage']['dir'])) {
mkdir($_SESSION['switch']['storage']['dir'],02770,true);
event_socket_mkdir($_SESSION['switch']['storage']['dir']);
}
if (!is_dir($fax_dir.'/'.$fax_extension)) {
mkdir($fax_dir.'/'.$fax_extension,02770,true);
event_socket_mkdir($fax_dir.'/'.$fax_extension);
}
if (!is_dir($dir_fax_inbox)) {
mkdir($dir_fax_inbox,02770,true);
event_socket_mkdir($dir_fax_inbox);
}
if (!is_dir($dir_fax_sent)) {
mkdir($dir_fax_sent,02770,true);
event_socket_mkdir($dir_fax_sent);
}
if (!is_dir($dir_fax_temp)) {
mkdir($dir_fax_temp,02770,true);
event_socket_mkdir($dir_fax_temp);
}
}