mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update rhel.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user