feat(installer): add tencentos as a supported os
This commit is contained in:
parent
3b68914b73
commit
86ffe196e0
1 changed files with 4 additions and 4 deletions
|
|
@ -331,7 +331,7 @@ if [ -z "$LATEST_REALTIME_VERSION" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$OS_TYPE" in
|
case "$OS_TYPE" in
|
||||||
arch | ubuntu | debian | raspbian | centos | fedora | rhel | ol | rocky | sles | opensuse-leap | opensuse-tumbleweed | almalinux | amzn | alpine | postmarketos) ;;
|
arch | ubuntu | debian | raspbian | centos | fedora | rhel | ol | rocky | sles | opensuse-leap | opensuse-tumbleweed | almalinux | amzn | alpine | postmarketos | tencentos) ;;
|
||||||
*)
|
*)
|
||||||
echo "This script only supports Debian, Redhat, Arch Linux, Alpine Linux, or SLES based operating systems for now."
|
echo "This script only supports Debian, Redhat, Arch Linux, Alpine Linux, or SLES based operating systems for now."
|
||||||
exit
|
exit
|
||||||
|
|
@ -380,7 +380,7 @@ else
|
||||||
APT_UPDATED=true
|
APT_UPDATED=true
|
||||||
apt-get install -y curl wget git jq openssl >/dev/null
|
apt-get install -y curl wget git jq openssl >/dev/null
|
||||||
;;
|
;;
|
||||||
centos | fedora | rhel | ol | rocky | almalinux | amzn)
|
centos | fedora | rhel | ol | rocky | almalinux | amzn | tencentos)
|
||||||
if [ "$OS_TYPE" = "amzn" ]; then
|
if [ "$OS_TYPE" = "amzn" ]; then
|
||||||
dnf install -y wget git jq openssl >/dev/null
|
dnf install -y wget git jq openssl >/dev/null
|
||||||
else
|
else
|
||||||
|
|
@ -451,7 +451,7 @@ if [ "$SSH_DETECTED" = "false" ]; then
|
||||||
systemctl enable ssh >/dev/null 2>&1
|
systemctl enable ssh >/dev/null 2>&1
|
||||||
systemctl start ssh >/dev/null 2>&1
|
systemctl start ssh >/dev/null 2>&1
|
||||||
;;
|
;;
|
||||||
centos | fedora | rhel | ol | rocky | almalinux | amzn)
|
centos | fedora | rhel | ol | rocky | almalinux | amzn | tencentos)
|
||||||
if [ "$OS_TYPE" = "amzn" ]; then
|
if [ "$OS_TYPE" = "amzn" ]; then
|
||||||
dnf install -y openssh-server >/dev/null
|
dnf install -y openssh-server >/dev/null
|
||||||
else
|
else
|
||||||
|
|
@ -591,7 +591,7 @@ if ! [ -x "$(command -v docker)" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"centos" | "fedora" | "rhel")
|
"centos" | "fedora" | "rhel" | "tencentos")
|
||||||
if [ -x "$(command -v dnf5)" ]; then
|
if [ -x "$(command -v dnf5)" ]; then
|
||||||
# dnf5 is available
|
# dnf5 is available
|
||||||
dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/$OS_TYPE/docker-ce.repo --overwrite >/dev/null 2>&1
|
dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/$OS_TYPE/docker-ce.repo --overwrite >/dev/null 2>&1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue