fix
This commit is contained in:
@@ -100,7 +100,7 @@ class RunRemoteProcess
|
||||
$port = $this->activity->getExtraProperty('port');
|
||||
$command = $this->activity->getExtraProperty('command');
|
||||
|
||||
return generateSshCommand($private_key_location, $server_ip, $user, $port, $command);
|
||||
return generate_ssh_command($private_key_location, $server_ip, $user, $port, $command);
|
||||
}
|
||||
|
||||
protected function handleOutput(string $type, string $output)
|
||||
|
||||
@@ -11,7 +11,7 @@ class CheckProxySettingsInSync
|
||||
public function __invoke(Server $server, bool $reset = false)
|
||||
{
|
||||
$proxy_path = config('coolify.proxy_config_path');
|
||||
$output = instantRemoteProcess([
|
||||
$output = instant_remote_process([
|
||||
"cat $proxy_path/docker-compose.yml",
|
||||
], $server, false);
|
||||
if (is_null($output) || $reset) {
|
||||
@@ -23,7 +23,7 @@ class CheckProxySettingsInSync
|
||||
$server->extra_attributes->last_saved_proxy_settings = Str::of($docker_compose_yml_base64)->pipe('md5')->value;
|
||||
$server->save();
|
||||
if (is_null($output) || $reset) {
|
||||
instantRemoteProcess([
|
||||
instant_remote_process([
|
||||
"mkdir -p $proxy_path",
|
||||
"echo '$docker_compose_yml_base64' | base64 -d > $proxy_path/docker-compose.yml",
|
||||
], $server);
|
||||
|
||||
@@ -25,7 +25,7 @@ class InstallProxy
|
||||
return "docker network ls --format '{{.Name}}' | grep '^$network$' >/dev/null 2>&1 || docker network create --attachable $network > /dev/null 2>&1";
|
||||
});
|
||||
|
||||
$configuration = instantRemoteProcess([
|
||||
$configuration = instant_remote_process([
|
||||
"cat $proxy_path/docker-compose.yml",
|
||||
], $server, false);
|
||||
if (is_null($configuration)) {
|
||||
@@ -40,7 +40,7 @@ class InstallProxy
|
||||
$env_file_base64 = base64_encode(
|
||||
$this->getEnvContents()
|
||||
);
|
||||
$activity = remoteProcess([
|
||||
$activity = remote_process([
|
||||
...$create_networks_command,
|
||||
"echo 'Docker networks created...'",
|
||||
"mkdir -p $proxy_path",
|
||||
|
||||
@@ -10,7 +10,7 @@ class InstallDocker
|
||||
public function __invoke(Server $server)
|
||||
{
|
||||
$config = base64_encode('{ "live-restore": true }');
|
||||
$activity = remoteProcess([
|
||||
$activity = remote_process([
|
||||
"echo Installing Docker...",
|
||||
"curl https://releases.rancher.com/install-docker/23.0.sh | sh",
|
||||
"echo Configuring Docker...",
|
||||
|
||||
Reference in New Issue
Block a user