refactor(file-transfer): replace base64 encoding with direct file transfer method across multiple database actions for improved clarity and efficiency
This commit is contained in:
@@ -180,10 +180,30 @@ Files:
|
||||
$command = [
|
||||
"echo 'Saving configuration'",
|
||||
"mkdir -p $config_path",
|
||||
"echo '{$parsers}' | base64 -d | tee $parsers_config > /dev/null",
|
||||
"echo '{$config}' | base64 -d | tee $fluent_bit_config > /dev/null",
|
||||
"echo '{$compose}' | base64 -d | tee $compose_path > /dev/null",
|
||||
"echo '{$readme}' | base64 -d | tee $readme_path > /dev/null",
|
||||
[
|
||||
'transfer_file' => [
|
||||
'content' => base64_decode($parsers),
|
||||
'destination' => $parsers_config,
|
||||
],
|
||||
],
|
||||
[
|
||||
'transfer_file' => [
|
||||
'content' => base64_decode($config),
|
||||
'destination' => $fluent_bit_config,
|
||||
],
|
||||
],
|
||||
[
|
||||
'transfer_file' => [
|
||||
'content' => base64_decode($compose),
|
||||
'destination' => $compose_path,
|
||||
],
|
||||
],
|
||||
[
|
||||
'transfer_file' => [
|
||||
'content' => base64_decode($readme),
|
||||
'destination' => $readme_path,
|
||||
],
|
||||
],
|
||||
"test -f $config_path/.env && rm $config_path/.env",
|
||||
];
|
||||
if ($type === 'newrelic') {
|
||||
|
||||
Reference in New Issue
Block a user