Merge pull request #5366 from djsisson/fix_delete_logic
change cleanup logic when restarting containers
This commit is contained in:
commit
edabd29093
2 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ public function handle(StandaloneRedis|StandalonePostgresql|StandaloneMongodb|St
|
|||
}
|
||||
|
||||
$this->stopContainer($database, $database->uuid, 300);
|
||||
if (! $isDeleteOperation) {
|
||||
if ($isDeleteOperation) {
|
||||
if ($dockerCleanup) {
|
||||
CleanupDocker::dispatch($server, true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public function handle(Service $service, bool $isDeleteOperation = false, bool $
|
|||
$containersToStop = $service->getContainersToStop();
|
||||
$service->stopContainers($containersToStop, $server);
|
||||
|
||||
if (! $isDeleteOperation) {
|
||||
if ($isDeleteOperation) {
|
||||
$service->delete_connected_networks($service->uuid);
|
||||
if ($dockerCleanup) {
|
||||
CleanupDocker::dispatch($server, true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue