This commit is contained in:
Andras Bacsai 2023-04-27 14:35:28 +02:00
parent f5c1533309
commit d51167d770

View File

@ -15,11 +15,12 @@ class CheckUpdate extends Component
protected function upgrade()
{
$server = Server::where('ip', 'coolify-testing-host')->first();
$server = Server::where('ip', 'host.docker.internal')->first();
if (!$server) {
return;
}
runRemoteCommandSync($server, ["curl -fsSL https://raw.githubusercontent.com/coollabsio/coolify/v4/scripts/upgrade.sh -o /root/upgrade.sh && bash -x /root/upgrade.sh $this->latestVersion"]);
runRemoteCommandSync($server, ['curl -fsSL https://raw.githubusercontent.com/coollabsio/coolify/v4/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh']);
runRemoteCommandSync($server, ["bash /data/coolify/source/upgrade.sh $this->latestVersion"]);
}
public function forceUpgrade()
{