mirror of
https://github.com/akatsukiro/lsky-pro-install-script.git
synced 2025-06-08 05:53:04 +08:00
fix: 修改函数顺序,优先安装基础环境
This commit is contained in:
parent
9afa80411d
commit
3402ba7e8e
@ -57,7 +57,7 @@ pre_check() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
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) ||
|
||||||
@ -70,6 +70,8 @@ install_base() {
|
|||||||
(install_soft curl wget git unzip gnupg)
|
(install_soft curl wget git unzip gnupg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_base
|
||||||
|
pre_check
|
||||||
|
|
||||||
install_php() {
|
install_php() {
|
||||||
echo -e "${green}开始安装PHP${plain}"
|
echo -e "${green}开始安装PHP${plain}"
|
||||||
@ -129,7 +131,6 @@ install_maraidb() {
|
|||||||
# TODO
|
# TODO
|
||||||
# 自动设置数据库,并将用户名、数据库名与密码打印出来
|
# 自动设置数据库,并将用户名、数据库名与密码打印出来
|
||||||
|
|
||||||
install_base
|
|
||||||
install_php
|
install_php
|
||||||
install_apache
|
install_apache
|
||||||
install_maraidb
|
install_maraidb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user