mirror of
https://github.com/akatsukiro/lsky-pro-install-script.git
synced 2025-06-08 05:53:04 +08:00
feat: 优化基础安装组建以支持RHEL系
This commit is contained in:
parent
34c1e8f36c
commit
f092c4ab98
@ -80,7 +80,9 @@ pre_check() {
|
|||||||
|
|
||||||
install_soft() {
|
install_soft() {
|
||||||
(command -v apt >/dev/null 2>&1 && apt update && apt install $* -y) ||
|
(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() {
|
install_base() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user