Update rhel.sh

This commit is contained in:
midoks
2023-10-20 01:56:20 +08:00
parent ceb41fef68
commit 2499c296e7
+1
View File
@@ -17,6 +17,7 @@ isStream=$(grep -o -i 'stream' /etc/redhat-release)
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
yum -y update
# CentOS Stream
if [ ! -z "$stream" ];then
yum install -y dnf dnf-plugins-core