mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 08:04:19 +02:00
fix: logical volumes could be overwritten with new path
This commit is contained in:
parent
25e2b812cb
commit
5799e6d8b0
@ -3092,10 +3092,9 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
|
|||||||
$topLevel->get('volumes')->put($name, [
|
$topLevel->get('volumes')->put($name, [
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
LocalPersistentVolume::updateOrCreate(
|
LocalPersistentVolume::updateOrCreate(
|
||||||
[
|
[
|
||||||
'mount_path' => $target,
|
'name' => $name,
|
||||||
'resource_id' => $originalResource->id,
|
'resource_id' => $originalResource->id,
|
||||||
'resource_type' => get_class($originalResource),
|
'resource_type' => get_class($originalResource),
|
||||||
],
|
],
|
||||||
@ -3206,7 +3205,6 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// convert environment variables to one format
|
// convert environment variables to one format
|
||||||
ray($environment);
|
|
||||||
$environment = convertComposeEnvironmentToArray($environment);
|
$environment = convertComposeEnvironmentToArray($environment);
|
||||||
|
|
||||||
// Add Coolify defined environments
|
// Add Coolify defined environments
|
||||||
|
Loading…
Reference in New Issue
Block a user