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