From 657ab0d6da4ac92ba6fd78798350a0fb9635c7ee Mon Sep 17 00:00:00 2001 From: Christopher <1289128+dragonfire1119@users.noreply.github.com> Date: Sat, 18 Oct 2025 09:45:22 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Update=20CasaOS=20installer=20to?= =?UTF-8?q?=20v0.4=20and=20uninstall=20script=20(#49)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump installer version from v0.3 to v0.4 - Update uninstall script URL to GitHub raw source - Simplify uninstall script download logic - Remove SSL bypass condition for get.casaos.io --- install-casaos/run.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/install-casaos/run.sh b/install-casaos/run.sh index ad3413b..876721d 100644 --- a/install-casaos/run.sh +++ b/install-casaos/run.sh @@ -32,7 +32,7 @@ NC='\033[0m' # No Color # Display Welcome echo -e "${BLUE}========================================${NC}" -echo -e "${GREEN}BigBear CasaOS Installer V0.3${NC}" +echo -e "${GREEN}BigBear CasaOS Installer V0.4${NC}" echo -e "${BLUE}========================================${NC}" echo "Here are some links:" echo "https://community.bigbeartechworld.com" @@ -140,7 +140,7 @@ UNAME_U="$(uname -s)" readonly UNAME_U readonly CASA_CONF_PATH=/etc/casaos/gateway.ini -readonly CASA_UNINSTALL_URL="https://get.casaos.io/uninstall/v0.4.15" +readonly CASA_UNINSTALL_URL="https://raw.githubusercontent.com/IceWhaleTech/get/main/casaos-uninstall" readonly CASA_UNINSTALL_PATH=/usr/bin/casaos-uninstall # REQUIREMENTS CONF PATH @@ -818,12 +818,8 @@ DownloadAndInstallCasaOS() { if [[ -f $PREFIX/tmp/casaos-uninstall ]]; then ${sudo_cmd} rm -rf "$PREFIX/tmp/casaos-uninstall" fi - # Add -k only for get.casaos.io if needed - if [[ "$NEED_SSL_BYPASS" = true ]] && [[ "$CASA_UNINSTALL_URL" == *"get.casaos.io"* ]]; then - ${sudo_cmd} curl -k -fsSL "$CASA_UNINSTALL_URL" >"$PREFIX/tmp/casaos-uninstall" - else - ${sudo_cmd} curl -fsSL "$CASA_UNINSTALL_URL" >"$PREFIX/tmp/casaos-uninstall" - fi + # Download from GitHub + ${sudo_cmd} curl -fsSL "$CASA_UNINSTALL_URL" >"$PREFIX/tmp/casaos-uninstall" ${sudo_cmd} cp -rf "$PREFIX/tmp/casaos-uninstall" $CASA_UNINSTALL_PATH || { Show 1 "Download uninstall script failed, Please check if your internet connection is working and retry." exit 1