mirror of
https://github.com/Snowy-Fluffy/zapret.installer.git
synced 2025-12-06 09:03:04 +03:00
some bug fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" ;;
|
||||
|
||||
Reference in New Issue
Block a user