remove default value

This commit is contained in:
Andras Bacsai 2023-05-25 15:48:26 +02:00
parent 62a214920d
commit e9a2310f62
5 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@ public function __invoke(Server $server): Activity
"echo 'Starting proxy...'",
'docker compose up -d --remove-orphans',
"echo 'Proxy installed successfully...'"
], $server, ActivityTypes::INLINE->value);
], $server);
return $activity;
}

View File

@ -17,7 +17,7 @@ public function __invoke(Server $server)
"echo '{$config}' | base64 -d > /etc/docker/daemon.json",
"echo Restarting Docker...",
"systemctl restart docker"
], $server, ActivityTypes::INLINE->value);
], $server);
return $activity;
}

View File

@ -26,7 +26,7 @@ public function runCommand()
{
try {
$this->validate();
$activity = remote_process([$this->command], Server::where('uuid', $this->server)->first(), ActivityTypes::INLINE->value);
$activity = remote_process([$this->command], Server::where('uuid', $this->server)->first());
$this->emit('newMonitorActivity', $activity->id);
} catch (\Exception $e) {
return general_error_handler($e);

View File

@ -60,7 +60,7 @@ public function submit()
if (empty($this->settings->fqdn)) {
remote_process([
"rm -f $dynamic_config_path/coolify.yaml",
], $server, ActivityTypes::INLINE->value);
], $server);
} else {
$url = Url::fromString($this->settings->fqdn);
$host = $url->getHost();
@ -106,7 +106,7 @@ public function submit()
remote_process([
"mkdir -p $dynamic_config_path",
"echo '$base64' | base64 -d > $dynamic_config_path/coolify.yaml",
], $server, ActivityTypes::INLINE->value);
], $server);
}
}
}

View File

@ -71,7 +71,7 @@ public function handle(): void
remote_process([
"bash /data/coolify/source/upgrade.sh $this->latest_version"
], $this->server, ActivityTypes::INLINE->value);
], $this->server);
}
} catch (\Exception $e) {
Log::error($e->getMessage());