From 068f1bd126cfc424281c2aecd34f2d0c49f03e30 Mon Sep 17 00:00:00 2001 From: Snowy-Fluffy Date: Mon, 14 Jul 2025 14:56:36 +0300 Subject: [PATCH] some bug fix --- files/init.sh | 4 ++-- files/install.sh | 12 ++++++------ installer.sh | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/files/init.sh b/files/init.sh index a0c37a9..f3e5ebc 100755 --- a/files/init.sh +++ b/files/init.sh @@ -14,7 +14,7 @@ detect_init() { INIT_SYSTEM="systemd" elif [ $SYSTEM == openwrt ]; then INIT_SYSTEM="procd" - elif command -v openrc-init >/dev/null 2>&1; then + elif command -v openrc >/dev/null 2>&1; then INIT_SYSTEM="openrc" elif command -v runit >/dev/null 2>&1; then INIT_SYSTEM="runit" @@ -129,4 +129,4 @@ check_zapret_status() { service zapret status >/dev/null 2>&1 && ZAPRET_ACTIVE=true || ZAPRET_ACTIVE=false ;; esac -} \ No newline at end of file +} diff --git a/files/install.sh b/files/install.sh index b4904b8..f264419 100755 --- a/files/install.sh +++ b/files/install.sh @@ -7,11 +7,11 @@ install_dependencies() { if [ "$kernel" = "Linux" ]; then . /etc/os-release declare -A command_by_ID=( - ["arch"]="pacman -S --noconfirm ipset " - ["artix"]="pacman -S --noconfirm ipset " - ["cachyos"]="pacman -S --noconfirm ipset " - ["endeavouros"]="pacman -S --noconfirm ipset " - ["manjaro"]="pacman -S --noconfirm ipset " + ["arch"]="pacman -S --noconfirm --needed ipset " + ["artix"]="pacman -S --noconfirm --needed ipset " + ["cachyos"]="pacman -S --noconfirm --needed ipset " + ["endeavouros"]="pacman -S --noconfirm --needed ipset " + ["manjaro"]="pacman -S --noconfirm --needed ipset " ["debian"]="apt-get install -y iptables ipset " ["fedora"]="dnf install -y iptables ipset" ["ubuntu"]="apt-get install -y iptables ipset" @@ -184,4 +184,4 @@ uninstall_zapret() { main_menu ;; esac -} \ No newline at end of file +} diff --git a/installer.sh b/installer.sh index 80ef58e..0432c44 100755 --- a/installer.sh +++ b/installer.sh @@ -12,7 +12,7 @@ install_dependencies() { find_package_manager() { case "$1" in - arch|artix|cachyos|endeavouros|manjaro|garuda) echo "$SUDO pacman -Syu --noconfirm && $SUDO pacman -S --noconfirm git" ;; + arch|artix|cachyos|endeavouros|manjaro|garuda) echo "$SUDO pacman -Syu --noconfirm && $SUDO pacman -S --noconfirm --needed git" ;; debian|ubuntu|mint) echo "$SUDO apt update -y && $SUDO apt install -y git" ;; fedora|almalinux|rocky) echo "$SUDO dnf check-update -y && $SUDO dnf install -y git" ;; void) echo "$SUDO xbps-install -S && $SUDO xbps-install -y git" ;;