mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-19 14:15:37 +00:00
Revert "refactor(file-transfer): replace base64 encoding with direct file transfer method in various components for improved clarity and efficiency"
This reverts commit feacedbb04.
This commit is contained in:
1 parent
393745b68c
commit
133e72336a
7 files changed
+48
-35
No files matched your search
@@ -232,12 +232,8 @@ EOD;
|
||||
break;
|
||||
}
|
||||
|
||||
$this->importCommands[] = [
|
||||
'transfer_file' => [
|
||||
'content' => $restoreCommand,
|
||||
'destination' => $scriptPath,
|
||||
],
|
||||
];
|
||||
$restoreCommandBase64 = base64_encode($restoreCommand);
|
||||
$this->importCommands[] = "echo \"{$restoreCommandBase64}\" | base64 -d > {$scriptPath}";
|
||||
$this->importCommands[] = "chmod +x {$scriptPath}";
|
||||
$this->importCommands[] = "docker cp {$scriptPath} {$this->container}:{$scriptPath}";
|
||||
|
||||
|
||||
Reference in new issue
Block a user