Make sure provisioning temporal directory exists (#2386)

Same rationale as 4.2
This commit is contained in:
Luis Daniel Lucio Quiroz 2017-02-19 23:50:35 -05:00 committed by FusionPBX
parent e45a0f80d2
commit bb7dba8570
1 changed files with 1 additions and 0 deletions

View File

@ -1078,6 +1078,7 @@ include "root.php";
$file_contents = $this->render();
//write the file
mkdir($directory,0777,true);
$fh = fopen($dest_path,"w") or die("Unable to write to $directory for provisioning. Make sure the path exists and permissons are set correctly.");
fwrite($fh, $file_contents);
fclose($fh);