diff --git a/ct/pangolin.sh b/ct/pangolin.sh index e629a0bd8..8cd0c1726 100644 --- a/ct/pangolin.sh +++ b/ct/pangolin.sh @@ -7,7 +7,6 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ # Source: https://pangolin.net/ | Github: https://github.com/fosrl/pangolin APP="Pangolin" -PANGOLIN_VERSION="${PANGOLIN_VERSION:-1.23.0}" var_tags="${var_tags:-proxy}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-4096}" @@ -38,7 +37,7 @@ function update_script() { ensure_dependencies build-essential python3 if ! command -v psql &>/dev/null; then - msg_error "This installation uses SQLite and cannot be upgraded to Pangolin ${PANGOLIN_VERSION}." + msg_error "This installation uses SQLite and cannot be upgraded to latest Pangolin." echo -e "${INFO}${YW}Starting with Pangolin 1.20.0, PostgreSQL is required as the database backend.${CL}" echo -e "${INFO}${YW}An automatic migration of your existing SQLite data is not supported.${CL}" echo -e "${INFO}${YW}Please create a new LXC with the Pangolin install script, which sets up PostgreSQL automatically.${CL}" @@ -48,7 +47,7 @@ function update_script() { NODE_VERSION="24" setup_nodejs - if check_for_gh_release "pangolin" "fosrl/pangolin" "$PANGOLIN_VERSION" "Pinned to a tested release because Pangolin's schema changes have repeatedly broken unattended updates. To try a newer version at your own risk, run: 'export PANGOLIN_VERSION=' and re-run update. If it breaks, please open an issue at https://github.com/community-scripts/ProxmoxVE/issues with the error log."; then + if check_for_gh_release "pangolin" "fosrl/pangolin"; then msg_info "Stopping Service" systemctl stop pangolin systemctl stop gerbil @@ -57,7 +56,7 @@ function update_script() { DB_URL=$(sed -n 's/.*connection_string: "\(.*\)".*/\1/p' /opt/pangolin/config/config.yml) create_backup /opt/pangolin/config - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball" "$PANGOLIN_VERSION" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gerbil" "fosrl/gerbil" "singlefile" "latest" "/usr/bin" "gerbil_linux_$(arch_resolve)" msg_info "Updating Pangolin" diff --git a/install/pangolin-install.sh b/install/pangolin-install.sh index 421154d2b..68238b033 100644 --- a/install/pangolin-install.sh +++ b/install/pangolin-install.sh @@ -22,13 +22,10 @@ msg_ok "Installed Dependencies" NODE_VERSION="24" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="pangolin" PG_DB_USER="pangolin" setup_postgresql_db -PANGOLIN_VERSION="${PANGOLIN_VERSION:-1.23.0}" -fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball" "$PANGOLIN_VERSION" +fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball" fetch_and_deploy_gh_release "gerbil" "fosrl/gerbil" "singlefile" "latest" "/usr/bin" "gerbil_linux_$(arch_resolve)" fetch_and_deploy_gh_release "traefik" "traefik/traefik" "prebuild" "latest" "/usr/bin" "traefik_v*_linux_$(arch_resolve).tar.gz" -# Read the variable first and prompt only when it is unset, so the install can -# be supplied up front. Same convention as install/forgejo-runner-install.sh. pango_url="${var_pangolin_url:-}" if [[ -z "$pango_url" ]]; then read -rp "${TAB3}Enter your Pangolin URL (ex: https://pangolin.example.com): " pango_url