debug
This commit is contained in:
parent
a672d4dbdd
commit
ca4bd779f2
@ -39,6 +39,7 @@ class InstanceAutoUpdateJob implements ShouldQueue
|
||||
$this->latest_version = get_latest_version_of_coolify();
|
||||
$this->current_version = config('version');
|
||||
if (!$this->force) {
|
||||
Log::info('Checking if update available');
|
||||
try {
|
||||
$this->check_if_update_available();
|
||||
} catch (\Exception $e) {
|
||||
@ -67,10 +68,11 @@ class InstanceAutoUpdateJob implements ShouldQueue
|
||||
"sleep 10"
|
||||
], $this->server);
|
||||
} else {
|
||||
Log::info('Downloading upgrade script');
|
||||
instant_remote_process([
|
||||
"curl -fsSL https://coolify-cdn.b-cdn.net/files/upgrade.sh -o /data/coolify/source/upgrade.sh",
|
||||
], $this->server);
|
||||
|
||||
Log::info('Running upgrade script');
|
||||
remote_process([
|
||||
"bash /data/coolify/source/upgrade.sh $this->latest_version"
|
||||
], $this->server);
|
||||
|
Loading…
x
Reference in New Issue
Block a user