refactor(file-transfer): replace base64 encoding with direct file transfer method in various components for improved clarity and efficiency
This commit is contained in:
@@ -232,8 +232,12 @@ EOD;
|
||||
break;
|
||||
}
|
||||
|
||||
$restoreCommandBase64 = base64_encode($restoreCommand);
|
||||
$this->importCommands[] = "echo \"{$restoreCommandBase64}\" | base64 -d > {$scriptPath}";
|
||||
$this->importCommands[] = [
|
||||
'transfer_file' => [
|
||||
'content' => $restoreCommand,
|
||||
'destination' => $scriptPath,
|
||||
],
|
||||
];
|
||||
$this->importCommands[] = "chmod +x {$scriptPath}";
|
||||
$this->importCommands[] = "docker cp {$scriptPath} {$this->container}:{$scriptPath}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user