From 5f87e99a61318b2b4eee1bf99ec28b050cb151df Mon Sep 17 00:00:00 2001 From: Gary Date: Fri, 1 Mar 2024 19:17:11 -0800 Subject: [PATCH] main: fix CDN url --- app/Actions/Server/UpdateCoolify.php | 2 +- scripts/install.sh | 6 +++--- scripts/upgrade.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php index 6813c0588..9d0065ba2 100644 --- a/app/Actions/Server/UpdateCoolify.php +++ b/app/Actions/Server/UpdateCoolify.php @@ -64,7 +64,7 @@ private function update() } else { ray('Running update on production server'); remote_process([ - "curl -fsSL https://githaven.org/Shiloh/lasthourcloud/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh", + "curl -fsSL https://githaven.org/Shiloh/lasthourcloud/src/branch/main/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh", "bash /data/coolify/source/upgrade.sh $this->latestVersion" ], $this->server); return; diff --git a/scripts/install.sh b/scripts/install.sh index 33924f68a..5c6a4dbe5 100644 --- 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.2.0" DOCKER_VERSION="24.0" -CDN="https://githaven.org/Shiloh/lasthourcloud" +CDN="https://githaven.org/Shiloh/lasthourcloud/src/branch/main/" OS_TYPE=$(grep -w "ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"') if [ "$OS_TYPE" = "arch" ]; then @@ -43,7 +43,7 @@ fi echo -e "-------------" echo -e "Welcome to Last Hour Cloud v4 beta installer!" echo -e "This script will install everything for you." -echo -e "(Source code: https://https://githaven.org/Shiloh/lasthourcloud/blob/main/scripts/install.sh)\n" +echo -e "(Source code: https://githaven.org/Shiloh/lasthourcloud/src/branch/main/scripts/install.sh)\n" echo -e "-------------" echo "OS: $OS_TYPE $OS_VERSION" @@ -205,7 +205,7 @@ echo "Downloading required files from CDN..." 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 curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production -curl -fsSL $CDN/upgrade.sh -o /data/coolify/source/upgrade.sh +curl -fsSL $CDN/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh # echo "Copying required files from Last Hour Cloud git repo..." # cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-compose.yml diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 5f338d540..c4bce99e0 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -2,7 +2,7 @@ ## Do not modify this file. You will lost the ability to autoupdate! VERSION="1.0.4" -CDN="https://githaven.org/Shiloh/lasthourcloud" +CDN="https://githaven.org/Shiloh/lasthourcloud/src/branch/main/" 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