Make sure provisioning temporal directory exists (#2386)
Same rationale as 4.2
This commit is contained in:
parent
e45a0f80d2
commit
bb7dba8570
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue