fix: base64 encode .env
This commit is contained in:
parent
e2cd7fe17e
commit
67011ccd72
1 changed files with 2 additions and 1 deletions
|
|
@ -791,9 +791,10 @@ private function save_environment_variables()
|
||||||
"save" => "dotenv"
|
"save" => "dotenv"
|
||||||
]);
|
]);
|
||||||
if (str($this->saved_outputs->get('dotenv'))->isNotEmpty()) {
|
if (str($this->saved_outputs->get('dotenv'))->isNotEmpty()) {
|
||||||
|
$base64_dotenv = base64_encode($this->saved_outputs->get('dotenv')->value());
|
||||||
$this->execute_remote_command(
|
$this->execute_remote_command(
|
||||||
[
|
[
|
||||||
"echo '{$this->saved_outputs->get('dotenv')->value()}' | tee $this->configuration_dir/.env > /dev/null"
|
"echo '{$base64_dotenv}' | base64 -d | tee $this->configuration_dir/.env > /dev/null"
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue