Fix Bedrock tool history and add upload limit config
This commit is contained in:
@@ -122,6 +122,17 @@ bootstrap_system_packages() {
|
||||
systemd
|
||||
}
|
||||
|
||||
configure_nginx_upload_limit() {
|
||||
if [[ "${BOOTSTRAP_SYSTEM}" != "1" && -f "${ENV_FILE}" ]]; then
|
||||
return
|
||||
fi
|
||||
local script="${ROOT_DIR}/scripts/configure-nginx-upload-limit.sh"
|
||||
if [[ -x "${script}" ]]; then
|
||||
log "配置 nginx 上传体积限制"
|
||||
"${script}" || warn "nginx 上传体积限制配置失败,可稍后手动执行:bash ${script}"
|
||||
fi
|
||||
}
|
||||
|
||||
prompt_value() {
|
||||
local var_name="$1"
|
||||
local prompt="$2"
|
||||
@@ -345,6 +356,7 @@ health_check() {
|
||||
main() {
|
||||
log "ZK Data Agent Ubuntu 部署"
|
||||
bootstrap_system_packages
|
||||
configure_nginx_upload_limit
|
||||
update_git
|
||||
ensure_env_file
|
||||
configure_instance_names
|
||||
|
||||
Reference in New Issue
Block a user