Fix directory creation issue in LocalFileVolume.php and parseDockerComposeFile()
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user