diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php index d3e398e30..534e3a953 100644 --- a/app/Actions/Server/UpdateCoolify.php +++ b/app/Actions/Server/UpdateCoolify.php @@ -57,14 +57,14 @@ private function update() } else { ray('Running update on production server'); remote_process([ - "curl -fsSL https://cdn.lasthourhosting.org/lasthourcloud/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh", + "curl -fsSL https://cdn.lasthourhosting.org/lasthourcloudprod/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh", "bash /data/coolify/source/upgrade.sh $this->latestVersion" ], $this->server); return; } remote_process([ - 'curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh -o /data/coolify/source/upgrade.sh', + "curl -fsSL https://cdn.lasthourhosting.org/lasthourcloudprod/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh", "bash /data/coolify/source/upgrade.sh $this->latestVersion", ], $this->server); } diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 4a32309f5..f1c1acca4 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -163,7 +163,7 @@ function get_route_parameters(): array function get_latest_sentinel_version(): string { try { - $response = Http::get('https://cdn.lasthourhosting.org/lasthourcloud/versions.json'); + $response = Http::get('https://cdn.lasthourhosting.org/lasthourcloudprod/versions.json'); $versions = $response->json(); return data_get($versions, 'sentinel.version'); @@ -388,7 +388,7 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = null Mail::send( [], [], - fn (Message $message) => $message + fn(Message $message) => $message ->to($email) ->replyTo($email) ->cc($cc) @@ -399,7 +399,7 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = null Mail::send( [], [], - fn (Message $message) => $message + fn(Message $message) => $message ->to($email) ->subject($mail->subject) ->html((string) $mail->render()) @@ -2331,15 +2331,15 @@ function checkIfDomainIsAlreadyUsed(Collection|array $domains, ?string $teamId = $applications = Application::ownedByCurrentTeamAPI($teamId)->get(['fqdn', 'uuid']); $serviceApplications = ServiceApplication::ownedByCurrentTeamAPI($teamId)->get(['fqdn', 'uuid']); if ($uuid) { - $applications = $applications->filter(fn ($app) => $app->uuid !== $uuid); - $serviceApplications = $serviceApplications->filter(fn ($app) => $app->uuid !== $uuid); + $applications = $applications->filter(fn($app) => $app->uuid !== $uuid); + $serviceApplications = $serviceApplications->filter(fn($app) => $app->uuid !== $uuid); } $domainFound = false; foreach ($applications as $app) { if (is_null($app->fqdn)) { continue; } - $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== ''); + $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== ''); foreach ($list_of_domains as $domain) { if (str($domain)->endsWith('/')) { $domain = str($domain)->beforeLast('/'); @@ -2358,7 +2358,7 @@ function checkIfDomainIsAlreadyUsed(Collection|array $domains, ?string $teamId = if (str($app->fqdn)->isEmpty()) { continue; } - $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== ''); + $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== ''); foreach ($list_of_domains as $domain) { if (str($domain)->endsWith('/')) { $domain = str($domain)->beforeLast('/'); @@ -2408,7 +2408,7 @@ function check_domain_usage(ServiceApplication|Application|null $resource = null }); $apps = Application::all(); foreach ($apps as $app) { - $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== ''); + $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== ''); foreach ($list_of_domains as $domain) { if (str($domain)->endsWith('/')) { $domain = str($domain)->beforeLast('/'); @@ -2427,7 +2427,7 @@ function check_domain_usage(ServiceApplication|Application|null $resource = null } $apps = ServiceApplication::all(); foreach ($apps as $app) { - $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== ''); + $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== ''); foreach ($list_of_domains as $domain) { if (str($domain)->endsWith('/')) { $domain = str($domain)->beforeLast('/'); diff --git a/scripts/dev_install.sh b/scripts/dev_install.sh index d9329fb42..d6cc254c2 100644 --- a/scripts/dev_install.sh +++ b/scripts/dev_install.sh @@ -8,7 +8,7 @@ set -o pipefail # Cause a pipeline to return the status of the last command that VERSION="1.2.2" DOCKER_VERSION="24.0" -CDN="https://cdn.lasthourhosting.org/lasthourcloud" +CDN="https://cdn.lasthourhosting.org/lasthourcloudprod" OS_TYPE=$(grep -w "ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"') if [ "$OS_TYPE" = "arch" ]; then diff --git a/scripts/dev_upgrade.sh b/scripts/dev_upgrade.sh index 01ba91638..5ba45dbe8 100644 --- a/scripts/dev_upgrade.sh +++ b/scripts/dev_upgrade.sh @@ -2,7 +2,7 @@ ## Do not modify this file. You will lose the ability to autoupdate! VERSION="1.0.4" -CDN="https://cdn.lasthourhosting.org/lasthourcloud" +CDN="https://cdn.lasthourhosting.org/lasthourcloudprod" # curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml # curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml diff --git a/scripts/install.sh b/scripts/install.sh index 800de8da0..356d54242 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -8,7 +8,7 @@ set -o pipefail # Cause a pipeline to return the status of the last command that VERSION="1.3.3" DOCKER_VERSION="26.0" -CDN="https://cdn.lasthourhosting.org/lasthourcloud" +CDN="https://cdn.lasthourhosting.org/lasthourcloudprod" OS_TYPE=$(grep -w "ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"') # Check if the OS is manjaro, if so, change it to arch diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 958fe2c90..e0f925f22 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -2,7 +2,7 @@ ## Do not modify this file. You will lose the ability to autoupdate! VERSION="1.0.5" -CDN="https://cdn.lasthourhosting.org/lasthourcloud" +CDN="https://cdn.lasthourhosting.org/lasthourcloudprod" curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml