Skip to content

Commit 5799e6d

Browse files
committed
fix: logical volumes could be overwritten with new path
1 parent 25e2b81 commit 5799e6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bootstrap/helpers/shared.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,10 +3092,9 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
30923092
$topLevel->get('volumes')->put($name, [
30933093
'name' => $name,
30943094
]);
3095-
30963095
LocalPersistentVolume::updateOrCreate(
30973096
[
3098-
'mount_path' => $target,
3097+
'name' => $name,
30993098
'resource_id' => $originalResource->id,
31003099
'resource_type' => get_class($originalResource),
31013100
],
@@ -3206,7 +3205,6 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
32063205
}
32073206
}
32083207
// convert environment variables to one format
3209-
ray($environment);
32103208
$environment = convertComposeEnvironmentToArray($environment);
32113209

32123210
// Add Coolify defined environments

0 commit comments

Comments
 (0)