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

@@ -42,7 +42,7 @@ if ($domains_processed == 1) {
foreach ($voicemails as $row) {
$path = $_SESSION['switch']['voicemail']['dir'].'/default/'.$row['domain_name'].'/'.$row['voicemail_id'];
if (!file_exists($path)) {
mkdir($path, 02770, true);
event_socket_mkdir($path);
}
}
unset ($prep_statement, $sql);