feat: 优化基础安装组建以支持RHEL系

This commit is contained in:
Akatsukiro 2024-01-18 17:08:06 +08:00
parent 34c1e8f36c
commit f092c4ab98
Signed by: Akatsukiro
GPG Key ID: 93F1D32999999999

View File

@ -80,7 +80,9 @@ pre_check() {
install_soft() {
(command -v apt >/dev/null 2>&1 && apt update && apt install $* -y) ||
(command -v apt-get >/dev/null 2>&1 && apt-get update && apt-get install $* -y)
(command -v apt-get >/dev/null 2>&1 && apt-get update && apt-get install $* -y) ||
(command -v yum >/dev/null 2>&1 && yum install $* -y) ||
(command -v dnf >/dev/null 2>&1 && dnf makecache && dnf install $* -y)
}
install_base() {