diff --git a/module/bi/model.php b/module/bi/model.php index b76664e5c13..01295e0b09d 100644 --- a/module/bi/model.php +++ b/module/bi/model.php @@ -1573,8 +1573,9 @@ public function updateDownloadingTagFile(string $type = 'file', string $action = $downloading = '.downloading'; $binRoot = $this->app->getTmpRoot() . 'duckdb' . DS; $duckdbBin = $this->getDuckdbBinConfig(); - $file = $binRoot . $duckdbBin[$type]; - $tagFile = $file . $downloading; + $binFile = $binRoot . $duckdbBin[$type]; + $zboxFile = $duckdbBin['path'] . $duckdbBin[$type]; + $tagFile = $binFile . $downloading; if($action == 'create') { @@ -1585,7 +1586,7 @@ public function updateDownloadingTagFile(string $type = 'file', string $action = if($action == 'check') { - if(file_exists($file)) return 'ok'; + if(file_exists($binFile) || file_exists($zboxFile)) return 'ok'; if(file_exists($tagFile)) return 'loading'; return 'fail'; }