some bug fix

This commit is contained in:
Snowy-Fluffy
2025-07-14 14:56:36 +03:00
parent 7f938f5ede
commit 068f1bd126
3 changed files with 9 additions and 9 deletions

View File

@@ -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
}
}

View File

@@ -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
}
}

View File

@@ -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" ;;