Mariusz Muszyński 7 年之前
父节点
当前提交
aadba41afa
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      SE/se-lib/Route/UrlAction/BiAuditGenerate.php

+ 2 - 0
SE/se-lib/Route/UrlAction/BiAuditGenerate.php

@@ -1977,6 +1977,8 @@ Wygenerowany raport Benford'a nr <?=$this->SOURCE['ID']?>
 		$baseDir = "/opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/{$basename}";
 		$ditamapFile = "{$baseDir}/{$basename}.ditamap";
 		$pdfFile = "{$baseDir}/pdf/{$basename}.pdf";
+		if (!file_exists($antDir)) mkdir($antDir, 0770, true);
+		if (!file_exists($antDir)) throw new Exception("Błąd podczas tworzenia katalogu {$andDir}");
 		copy($xmlFile, $antXmlFile);
 		shell_exec("cd /Library/Server/Web/Data/Sites/Default/SE/schema/WPS_Functions/default_db/CRM_PROCES_tree && sudo /opt/local/bin/ant -f build_CRM_PROCES_tree.xml default_db:PROCES_INIT:tree:dita -Duuid={$basename}");
 		if (!file_exists($ditamapFile)) throw new Exception("Nie udało się wygenerować pliku ditamap");