Fix Bedrock tool history and add upload limit config

This commit is contained in:
wuyang6
2026-05-14 11:08:05 +08:00
parent d7c62a4929
commit cccdd44ca2
3 changed files with 134 additions and 1 deletions
+12
View File
@@ -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