Fix directory creation issue in LocalFileVolume.php and parseDockerComposeFile()

This commit is contained in:
Andras Bacsai
2024-02-14 10:13:49 +01:00
parent a7ab5d55d3
commit 6dd86eec30
2 changed files with 5 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class LocalFileVolume extends BaseModel
if (!$fileVolume->is_directory && $isDir == 'NOK') {
$content = base64_encode($content);
$commands->push("echo '$content' | base64 -d > $path");
} else if ($isDir == 'NOK' && $fileVolume->is_directory) {
} else if ($isDir == 'NOK' && $fileVolume->is_directory) {
$commands->push("mkdir -p $path > /dev/null 2>&1 || true");
}
ray($commands->toArray());