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:
authorhikari <94219809+metantesan@users.noreply.github.com>2024-04-17 09:26:02 +0300
committerGitHub <noreply@github.com>2024-04-17 09:26:02 +0300
commite02a199425e17136ceecd7334b23acd03d423b67 (patch)
tree55b85332d637670fc1156a0380e493d612a05ad7
parentd712b44ea10d6bc6873551a2523e0c30a847ea36 (diff)
Add Support For Install On Parch Linux (#2227)
-rw-r--r--README.md1
-rw-r--r--install.sh5
-rw-r--r--x-ui.sh8
3 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index 318b5021..a17bb7f0 100644
--- a/README.md
+++ b/README.md
@@ -195,6 +195,7 @@ remove 3x-ui from docker
- CentOS 8+
- Fedora 36+
- Arch Linux
+- Parch Linux
- Manjaro
- Armbian
- AlmaLinux 9+
diff --git a/install.sh b/install.sh
index c9e30035..69254904 100644
--- a/install.sh
+++ b/install.sh
@@ -43,6 +43,8 @@ os_version=$(grep -i version_id /etc/os-release | cut -d \" -f2 | cut -d . -f1)
if [[ "${release}" == "arch" ]]; then
echo "Your OS is Arch Linux"
+elif [[ "${release}" == "parch" ]]; then
+ echo "Your OS is Parch linux"
elif [[ "${release}" == "manjaro" ]]; then
echo "Your OS is Manjaro"
elif [[ "${release}" == "armbian" ]]; then
@@ -83,6 +85,7 @@ else
echo "- CentOS 8+"
echo "- Fedora 36+"
echo "- Arch Linux"
+ echo "- Parch Linux"
echo "- Manjaro"
echo "- Armbian"
echo "- AlmaLinux 9+"
@@ -100,7 +103,7 @@ install_base() {
fedora)
dnf -y update && dnf install -y -q wget curl tar tzdata
;;
- arch | manjaro)
+ arch | manjaro | parch)
pacman -Syu && pacman -Syu --noconfirm wget curl tar tzdata
;;
*)
diff --git a/x-ui.sh b/x-ui.sh
index 8581a302..a9ef1601 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -422,7 +422,7 @@ enable_bbr() {
fedora)
dnf -y update && dnf -y install ca-certificates
;;
- arch | manjaro)
+ arch | manjaro | parch)
pacman -Sy --noconfirm ca-certificates
;;
*)
@@ -749,7 +749,7 @@ ssl_cert_issue() {
fedora)
dnf -y update && dnf -y install socat
;;
- arch | manjaro)
+ arch | manjaro | parch)
pacman -Sy --noconfirm socat
;;
*)
@@ -1117,7 +1117,7 @@ install_iplimit() {
fedora)
dnf -y update && dnf -y install fail2ban
;;
- arch | manjaro)
+ arch | manjaro | parch)
pacman -Syu --noconfirm fail2ban
;;
*)
@@ -1199,7 +1199,7 @@ remove_iplimit() {
dnf remove fail2ban -y
dnf autoremove -y
;;
- arch | manjaro)
+ arch | manjaro | parch)
pacman -Rns --noconfirm fail2ban
;;
*)