Skip to content

Commit 6010b32

Browse files
committed
remove duplicated code
1 parent 5041332 commit 6010b32

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/Jobs/DatabaseBackupJob.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,6 @@ private function upload_to_s3(): void
497497

498498
$this->ensureHelperImageAvailable();
499499

500-
$settings = InstanceSettings::get();
501-
$helperImage = config('coolify.helper_image');
502-
$helperImageTag = $settings->helper_version;
503-
$fullImageName = "{$helperImage}:{$helperImageTag}";
504-
505500
$commands[] = "docker run -d --network {$network} --name backup-of-{$this->backup->uuid} --rm -v $this->backup_location:$this->backup_location:ro {$fullImageName}";
506501
$commands[] = "docker exec backup-of-{$this->backup->uuid} mc config host add temporary {$endpoint} $key $secret";
507502
$commands[] = "docker exec backup-of-{$this->backup->uuid} mc cp $this->backup_location temporary/$bucket{$this->backup_dir}/";

0 commit comments

Comments
 (0)