From 1357372ae2a1ab78bf2bfb34f58b02f7e11e4973 Mon Sep 17 00:00:00 2001 From: guoningzhang20 Date: Fri, 20 Mar 2026 11:06:24 +0800 Subject: [PATCH] feat: Add TencentOS Server to supported distributions --- install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ada03570..186dd248 100755 --- a/install.sh +++ b/install.sh @@ -508,7 +508,7 @@ do_install() { esac ;; - centos|rhel) + centos|rhel|tencentos) if [ -z "$dist_version" ] && [ -r /etc/os-release ]; then dist_version="$(. /etc/os-release && echo "$VERSION_ID")" fi @@ -626,12 +626,17 @@ do_install() { echo_docker_as_nonroot exit 0 ;; - centos|fedora|rhel) + centos|fedora|rhel|tencentos) if [ "$(uname -m)" = "s390x" ]; then echo "Effective v27.5, please consult RHEL distro statement for s390x support." exit 1 fi - repo_file_url="$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE" + # TencentOS is RHEL-compatible, use centos repo + if [ "$lsb_dist" = "tencentos" ]; then + repo_file_url="$DOWNLOAD_URL/linux/centos/$REPO_FILE" + else + repo_file_url="$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE" + fi ( if ! is_dry_run; then set -x