mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-03 11:04:20 +00:00
fix(scripts): avoid rpm package upgrades before installs (#5750)
This commit is contained in:
+3
-3
@@ -101,13 +101,13 @@ install_base() {
|
||||
apt-get update && apt-get install -y -q cron curl tar tzdata socat ca-certificates openssl
|
||||
;;
|
||||
fedora | amzn | virtuozzo | rhel | almalinux | rocky | ol)
|
||||
dnf -y update && dnf install -y -q cronie curl tar tzdata socat ca-certificates openssl
|
||||
dnf makecache -y && dnf install -y -q cronie curl tar tzdata socat ca-certificates openssl
|
||||
;;
|
||||
centos)
|
||||
if [[ "${VERSION_ID}" =~ ^7 ]]; then
|
||||
yum -y update && yum install -y cronie curl tar tzdata socat ca-certificates openssl
|
||||
yum makecache -y && yum install -y cronie curl tar tzdata socat ca-certificates openssl
|
||||
else
|
||||
dnf -y update && dnf install -y -q cronie curl tar tzdata socat ca-certificates openssl
|
||||
dnf makecache -y && dnf install -y -q cronie curl tar tzdata socat ca-certificates openssl
|
||||
fi
|
||||
;;
|
||||
arch | manjaro | parch)
|
||||
|
||||
@@ -187,7 +187,7 @@ install_base() {
|
||||
;;
|
||||
centos)
|
||||
if [[ "${VERSION_ID}" =~ ^7 ]]; then
|
||||
yum -y update > /dev/null 2>&1 && yum install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1
|
||||
yum makecache -y > /dev/null 2>&1 && yum install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1
|
||||
else
|
||||
dnf makecache -y > /dev/null 2>&1 && dnf install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
@@ -1583,13 +1583,13 @@ ssl_cert_issue_for_ip() {
|
||||
apt-get update > /dev/null 2>&1 && apt-get install socat -y > /dev/null 2>&1
|
||||
;;
|
||||
fedora | amzn | virtuozzo | rhel | almalinux | rocky | ol)
|
||||
dnf -y update > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
dnf makecache -y > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
;;
|
||||
centos)
|
||||
if [[ "${VERSION_ID}" =~ ^7 ]]; then
|
||||
yum -y update > /dev/null 2>&1 && yum -y install socat > /dev/null 2>&1
|
||||
yum makecache -y > /dev/null 2>&1 && yum -y install socat > /dev/null 2>&1
|
||||
else
|
||||
dnf -y update > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
dnf makecache -y > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
fi
|
||||
;;
|
||||
arch | manjaro | parch)
|
||||
@@ -1749,13 +1749,13 @@ ssl_cert_issue() {
|
||||
apt-get update > /dev/null 2>&1 && apt-get install socat -y > /dev/null 2>&1
|
||||
;;
|
||||
fedora | amzn | virtuozzo | rhel | almalinux | rocky | ol)
|
||||
dnf -y update > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
dnf makecache -y > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
;;
|
||||
centos)
|
||||
if [[ "${VERSION_ID}" =~ ^7 ]]; then
|
||||
yum -y update > /dev/null 2>&1 && yum -y install socat > /dev/null 2>&1
|
||||
yum makecache -y > /dev/null 2>&1 && yum -y install socat > /dev/null 2>&1
|
||||
else
|
||||
dnf -y update > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
dnf makecache -y > /dev/null 2>&1 && dnf -y install socat > /dev/null 2>&1
|
||||
fi
|
||||
;;
|
||||
arch | manjaro | parch)
|
||||
@@ -2286,14 +2286,14 @@ setup_fail2ban_iplimit() {
|
||||
apt-get update && apt-get install fail2ban nftables -y
|
||||
;;
|
||||
fedora | amzn | virtuozzo | rhel | almalinux | rocky | ol)
|
||||
dnf -y update && dnf -y install fail2ban nftables
|
||||
dnf makecache -y && dnf -y install fail2ban nftables
|
||||
;;
|
||||
centos)
|
||||
if [[ "${VERSION_ID}" =~ ^7 ]]; then
|
||||
yum update -y && yum install epel-release -y
|
||||
yum makecache -y && yum install epel-release -y
|
||||
yum -y install fail2ban nftables
|
||||
else
|
||||
dnf -y update && dnf -y install fail2ban nftables
|
||||
dnf makecache -y && dnf -y install fail2ban nftables
|
||||
fi
|
||||
;;
|
||||
arch | manjaro | parch)
|
||||
|
||||
Reference in New Issue
Block a user