Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLxtend <lixiangwuxian@outlook.com>2024-05-07 13:03:32 +0300
committerGitHub <noreply@github.com>2024-05-07 13:03:32 +0300
commitd1f67f7f2f10ad3ff08d975435a8ef3664da277f (patch)
treeba76b90528950983705a68bfc06f8bae8d74fbd0 /install.sh
parentbb6757df0f18551991e90ae4af1bfd9dd12a85e4 (diff)
feat: add support for install on opensuse tumbleweed (#2244)
* feat: add support for opensuse tumbleweed * doc(readme): add opensuse tumbleweed to recommended os --------- Co-authored-by: lixiangwuxian <lixiangwuxian@lxtend.com>
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 69254904..b4a54289 100644
--- a/install.sh
+++ b/install.sh
@@ -49,6 +49,8 @@ elif [[ "${release}" == "manjaro" ]]; then
echo "Your OS is Manjaro"
elif [[ "${release}" == "armbian" ]]; then
echo "Your OS is Armbian"
+elif [[ "${release}" == "opensuse-tumbleweed" ]]; then
+ echo "Your OS is OpenSUSE Tumbleweed"
elif [[ "${release}" == "centos" ]]; then
if [[ ${os_version} -lt 8 ]]; then
echo -e "${red} Please use CentOS 8 or higher ${plain}\n" && exit 1
@@ -91,6 +93,7 @@ else
echo "- AlmaLinux 9+"
echo "- Rocky Linux 9+"
echo "- Oracle Linux 8+"
+ echo "- OpenSUSE Tumbleweed"
exit 1
fi
@@ -106,6 +109,9 @@ install_base() {
arch | manjaro | parch)
pacman -Syu && pacman -Syu --noconfirm wget curl tar tzdata
;;
+ opensuse-tumbleweed)
+ zypper refresh && zypper -q install -y wget curl tar timezone
+ ;;
*)
apt-get update && apt install -y -q wget curl tar tzdata
;;