Add Support For Install On Parch Linux (#2227)

This commit is contained in:
hikari 2024-04-17 09:56:02 +03:30 committed by GitHub
parent d712b44ea1
commit e02a199425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 5 deletions

View File

@ -195,6 +195,7 @@ remove 3x-ui from docker
- CentOS 8+
- Fedora 36+
- Arch Linux
- Parch Linux
- Manjaro
- Armbian
- AlmaLinux 9+

View File

@ -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
;;
*)

View File

@ -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
;;
*)