mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
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>
This commit is contained in:
parent
bb6757df0f
commit
d1f67f7f2f
@ -185,6 +185,7 @@ eliminar 3x-ui de docker
|
|||||||
- Armbian
|
- Armbian
|
||||||
- AlmaLinux 9+
|
- AlmaLinux 9+
|
||||||
- Rockylinux 9+
|
- Rockylinux 9+
|
||||||
|
- OpenSUSE Tubleweed
|
||||||
|
|
||||||
## Arquitecturas y Dispositivos Compatibles
|
## Arquitecturas y Dispositivos Compatibles
|
||||||
|
|
||||||
@ -397,7 +398,7 @@ Ingresa el ID de chat de usuario en el campo de entrada número 4. Las cuentas d
|
|||||||
- `/panel/api/inbounds` base para las siguientes acciones:
|
- `/panel/api/inbounds` base para las siguientes acciones:
|
||||||
|
|
||||||
| Método | Ruta | Acción |
|
| Método | Ruta | Acción |
|
||||||
| :----: | ---------------------------------- | -------------------------------------------------------- |
|
| :----: | ---------------------------------- | --------------------------------------------------------- |
|
||||||
| `GET` | `"/list"` | Obtener todas los Entradas |
|
| `GET` | `"/list"` | Obtener todas los Entradas |
|
||||||
| `GET` | `"/get/:id"` | Obtener Entrada con inbound.id |
|
| `GET` | `"/get/:id"` | Obtener Entrada con inbound.id |
|
||||||
| `GET` | `"/getClientTraffics/:email"` | Obtener Tráficos del Cliente con email |
|
| `GET` | `"/getClientTraffics/:email"` | Obtener Tráficos del Cliente con email |
|
||||||
@ -435,7 +436,7 @@ Ingresa el ID de chat de usuario en el campo de entrada número 4. Las cuentas d
|
|||||||
#### Uso
|
#### Uso
|
||||||
|
|
||||||
| Variable | Tipo | Predeterminado |
|
| Variable | Tipo | Predeterminado |
|
||||||
| -------------- | :--------------------------------------------: | :------------ |
|
| -------------- | :--------------------------------------------: | :------------- |
|
||||||
| XUI_LOG_LEVEL | `"debug"` \| `"info"` \| `"warn"` \| `"error"` | `"info"` |
|
| XUI_LOG_LEVEL | `"debug"` \| `"info"` \| `"warn"` \| `"error"` | `"info"` |
|
||||||
| XUI_DEBUG | `boolean` | `false` |
|
| XUI_DEBUG | `boolean` | `false` |
|
||||||
| XUI_BIN_FOLDER | `string` | `"bin"` |
|
| XUI_BIN_FOLDER | `string` | `"bin"` |
|
||||||
|
@ -201,6 +201,7 @@ remove 3x-ui from docker
|
|||||||
- AlmaLinux 9+
|
- AlmaLinux 9+
|
||||||
- Rocky Linux 9+
|
- Rocky Linux 9+
|
||||||
- Oracle Linux 8+
|
- Oracle Linux 8+
|
||||||
|
- OpenSUSE Tubleweed
|
||||||
|
|
||||||
## Supported Architectures and Devices
|
## Supported Architectures and Devices
|
||||||
|
|
||||||
|
@ -185,6 +185,7 @@ systemctl restart x-ui
|
|||||||
- Armbian
|
- Armbian
|
||||||
- AlmaLinux 9+
|
- AlmaLinux 9+
|
||||||
- Rockylinux 9+
|
- Rockylinux 9+
|
||||||
|
- OpenSUSE Tubleweed
|
||||||
|
|
||||||
## 支持的架构和设备
|
## 支持的架构和设备
|
||||||
<details>
|
<details>
|
||||||
@ -396,7 +397,7 @@ Web 面板通过 Telegram Bot 支持每日流量、面板登录、数据库备
|
|||||||
- `/panel/api/inbounds` 以下操作的基础:
|
- `/panel/api/inbounds` 以下操作的基础:
|
||||||
|
|
||||||
| 方法 | 路径 | 操作 |
|
| 方法 | 路径 | 操作 |
|
||||||
| :----: | ---------------------------------- | ------------------------------------------- |
|
| :----: | ---------------------------------- | --------------------------------- |
|
||||||
| `GET` | `"/list"` | 获取所有入站 |
|
| `GET` | `"/list"` | 获取所有入站 |
|
||||||
| `GET` | `"/get/:id"` | 获取所有入站以及inbound.id |
|
| `GET` | `"/get/:id"` | 获取所有入站以及inbound.id |
|
||||||
| `GET` | `"/getClientTraffics/:email"` | 通过电子邮件获取客户端流量 |
|
| `GET` | `"/getClientTraffics/:email"` | 通过电子邮件获取客户端流量 |
|
||||||
|
@ -49,6 +49,8 @@ elif [[ "${release}" == "manjaro" ]]; then
|
|||||||
echo "Your OS is Manjaro"
|
echo "Your OS is Manjaro"
|
||||||
elif [[ "${release}" == "armbian" ]]; then
|
elif [[ "${release}" == "armbian" ]]; then
|
||||||
echo "Your OS is Armbian"
|
echo "Your OS is Armbian"
|
||||||
|
elif [[ "${release}" == "opensuse-tumbleweed" ]]; then
|
||||||
|
echo "Your OS is OpenSUSE Tumbleweed"
|
||||||
elif [[ "${release}" == "centos" ]]; then
|
elif [[ "${release}" == "centos" ]]; then
|
||||||
if [[ ${os_version} -lt 8 ]]; then
|
if [[ ${os_version} -lt 8 ]]; then
|
||||||
echo -e "${red} Please use CentOS 8 or higher ${plain}\n" && exit 1
|
echo -e "${red} Please use CentOS 8 or higher ${plain}\n" && exit 1
|
||||||
@ -91,6 +93,7 @@ else
|
|||||||
echo "- AlmaLinux 9+"
|
echo "- AlmaLinux 9+"
|
||||||
echo "- Rocky Linux 9+"
|
echo "- Rocky Linux 9+"
|
||||||
echo "- Oracle Linux 8+"
|
echo "- Oracle Linux 8+"
|
||||||
|
echo "- OpenSUSE Tumbleweed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@ -106,6 +109,9 @@ install_base() {
|
|||||||
arch | manjaro | parch)
|
arch | manjaro | parch)
|
||||||
pacman -Syu && pacman -Syu --noconfirm wget curl tar tzdata
|
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
|
apt-get update && apt install -y -q wget curl tar tzdata
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user