Update install-dep.sh

This commit is contained in:
amidevous
2024-10-12 12:27:54 +02:00
committed by GitHub
parent 731ad06b91
commit 72670ae72e
+4 -4
View File
@@ -64,7 +64,7 @@ if [[ "$OS" = "CentOs" && "$VER" = "6" && "$ARCH" == "x86_64" ||
"$OS" = "CentOs" && "$VER" = "7" && "$ARCH" == "x86_64" || "$OS" = "CentOs" && "$VER" = "7" && "$ARCH" == "x86_64" ||
"$OS" = "CentOs-Stream" && "$VER" = "8" && "$ARCH" == "x86_64" || "$OS" = "CentOs-Stream" && "$VER" = "8" && "$ARCH" == "x86_64" ||
"$OS" = "CentOs-Stream" && "$VER" = "9" && "$ARCH" == "x86_64" || "$OS" = "CentOs-Stream" && "$VER" = "9" && "$ARCH" == "x86_64" ||
"$OS" = "Fedora" && ("$VER" = "36" || "$VER" = "37" || "$VER" = "38" ) && "$ARCH" == "x86_64" || "$OS" = "Fedora" && "$ARCH" == "x86_64" ||
"$OS" = "Ubuntu" && ( "$VER" = "18.04" || "$VER" = "20.04" || "$VER" = "22.04" || "$VER" = "24.04" ) && "$ARCH" == "x86_64" || "$OS" = "Ubuntu" && ( "$VER" = "18.04" || "$VER" = "20.04" || "$VER" = "22.04" || "$VER" = "24.04" ) && "$ARCH" == "x86_64" ||
"$OS" = "debian" && ("$VER" = "10" || "$VER" = "11" ) && "$ARCH" == "x86_64" ]] ; then "$OS" = "debian" && ("$VER" = "10" || "$VER" = "11" ) && "$ARCH" == "x86_64" ]] ; then
echo "Ok." echo "Ok."
@@ -333,7 +333,7 @@ EOF
setenforce 0 setenforce 0
# Stop conflicting services and iptables to ensure all services will work # Stop conflicting services and iptables to ensure all services will work
if [[ "$VER" = "7" || "$VER" = "8" || "$VER" = "34" || "$VER" = "35" || "$VER" = "36" ]]; then if [[ "$VER" = "7" || "$VER" = "8" || "$OS" = "Fedora" ]]; then
systemctl stop sendmail.service systemctl stop sendmail.service
systemctl disabble sendmail.service systemctl disabble sendmail.service
else else
@@ -343,12 +343,12 @@ EOF
# disable firewall # disable firewall
$PACKAGE_INSTALLER iptables $PACKAGE_INSTALLER iptables
$PACKAGE_INSTALLER firewalld $PACKAGE_INSTALLER firewalld
if [[ "$VER" = "7" || "$VER" = "8" || "$VER" = "34" || "$VER" = "35" || "$VER" = "36" ]]; then if [[ "$VER" = "7" || "$VER" = "8" || "$OS" = "Fedora" ]]; then
FIREWALL_SERVICE="firewalld" FIREWALL_SERVICE="firewalld"
else else
FIREWALL_SERVICE="iptables" FIREWALL_SERVICE="iptables"
fi fi
if [[ "$VER" = "7" || "$VER" = "8" || "$VER" = "34" || "$VER" = "35" || "$VER" = "36" ]]; then if [[ "$VER" = "7" || "$VER" = "8" || "$OS" = "Fedora" ]]; then
systemctl save "$FIREWALL_SERVICE".service systemctl save "$FIREWALL_SERVICE".service
systemctl stop "$FIREWALL_SERVICE".service systemctl stop "$FIREWALL_SERVICE".service
systemctl disable "$FIREWALL_SERVICE".service systemctl disable "$FIREWALL_SERVICE".service