提交 cd6b1972 authored 作者: 陈泽健's avatar 陈泽健

refactor(deploy): 更新ARM架构部署脚本以使用特定平台版本

- 将中间件安装脚本从auto_middleware_install.sh更改为arm_auto_middleware_install.sh
- 将文件上传检查脚本从auto_file_upload_check.sh更改为arm_auto_file_upload_check.sh
- 将定时任务设置脚本从auto_crontab_settings.sh更改为arm_auto_crontab_settings.sh
- 将主服务部署脚本从auto_deploy_services.sh更改为arm_auto_deploy_services.sh
- 将防火墙设置脚本从auto_firewall_settings.sh更改为arm_auto_firewall_settings.sh
- 将空间检查脚本从auto_check_space.sh更改为arm_auto_check_space.sh
- 为会议、监控和语音三个部署场景同时应用上述脚本引用更新
上级 632241d2
......@@ -49,42 +49,42 @@ function log() {
# 获取脚本所在目录
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# 导入中间件部署脚本
if [[ -f "$SCRIPT_DIR/auto_middleware_install.sh" ]]; then
source "$SCRIPT_DIR/auto_middleware_install.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_middleware_install.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_middleware_install.sh"
else
log "ERROR" "中间件部署脚本不存在: $SCRIPT_DIR/auto_middleware_install.sh"
log "ERROR" "中间件部署脚本不存在: $SCRIPT_DIR/arm_auto_middleware_install.sh"
exit 1
fi
# 导入文件检查脚本
if [[ -f "$SCRIPT_DIR/auto_file_upload_check.sh" ]]; then
source "$SCRIPT_DIR/auto_file_upload_check.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_file_upload_check.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_file_upload_check.sh"
else
log "ERROR" "文件检查脚本不存在: $SCRIPT_DIR/auto_file_upload_check.sh"
log "ERROR" "文件检查脚本不存在: $SCRIPT_DIR/arm_auto_file_upload_check.sh"
exit 1
fi
# 导入定时任务设置脚本
if [[ -f "$SCRIPT_DIR/auto_crontab_settings.sh" ]]; then
source "$SCRIPT_DIR/auto_crontab_settings.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_crontab_settings.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_crontab_settings.sh"
else
log "ERROR" "定时任务设置脚本不存在: $SCRIPT_DIR/auto_crontab_settings.sh"
log "ERROR" "定时任务设置脚本不存在: $SCRIPT_DIR/arm_auto_crontab_settings.sh"
exit 1
fi
# 导入主服务部署脚本
if [[ -f "$SCRIPT_DIR/auto_deploy_services.sh" ]]; then
source "$SCRIPT_DIR/auto_deploy_services.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_deploy_services.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_deploy_services.sh"
else
log "ERROR" "主服务部署脚本不存在: $SCRIPT_DIR/auto_deploy_services.sh"
log "ERROR" "主服务部署脚本不存在: $SCRIPT_DIR/arm_auto_deploy_services.sh"
exit 1
fi
# 导入防火墙设置脚本
if [[ -f "$SCRIPT_DIR/auto_firewall_settings.sh" ]]; then
source "$SCRIPT_DIR/auto_firewall_settings.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_firewall_settings.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_firewall_settings.sh"
else
log "ERROR" "防火墙设置脚本不存在: $SCRIPT_DIR/auto_firewall_settings.sh"
log "ERROR" "防火墙设置脚本不存在: $SCRIPT_DIR/arm_auto_firewall_settings.sh"
exit 1
fi
......@@ -182,7 +182,7 @@ function checkServerSpace() {
# 调用空间检查脚本
log "INFO" "执行空间检查脚本..."
system_type=$system_type "$SCRIPT_DIR/auto_check_space.sh"
system_type=$system_type "$SCRIPT_DIR/arm_auto_check_space.sh"
return_code=$?
# 根据返回值处理
......
......@@ -49,42 +49,42 @@ function log() {
# 获取脚本所在目录
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# 导入中间件部署脚本
if [[ -f "$SCRIPT_DIR/auto_middleware_install.sh" ]]; then
source "$SCRIPT_DIR/auto_middleware_install.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_middleware_install.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_middleware_install.sh"
else
log "ERROR" "中间件部署脚本不存在: $SCRIPT_DIR/auto_middleware_install.sh"
log "ERROR" "中间件部署脚本不存在: $SCRIPT_DIR/arm_auto_middleware_install.sh"
exit 1
fi
# 导入文件检查脚本
if [[ -f "$SCRIPT_DIR/auto_file_upload_check.sh" ]]; then
source "$SCRIPT_DIR/auto_file_upload_check.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_file_upload_check.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_file_upload_check.sh"
else
log "ERROR" "文件检查脚本不存在: $SCRIPT_DIR/auto_file_upload_check.sh"
log "ERROR" "文件检查脚本不存在: $SCRIPT_DIR/arm_auto_file_upload_check.sh"
exit 1
fi
# 导入定时任务设置脚本
if [[ -f "$SCRIPT_DIR/auto_crontab_settings.sh" ]]; then
source "$SCRIPT_DIR/auto_crontab_settings.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_crontab_settings.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_crontab_settings.sh"
else
log "ERROR" "定时任务设置脚本不存在: $SCRIPT_DIR/auto_crontab_settings.sh"
log "ERROR" "定时任务设置脚本不存在: $SCRIPT_DIR/arm_auto_crontab_settings.sh"
exit 1
fi
# 导入主服务部署脚本
if [[ -f "$SCRIPT_DIR/auto_deploy_services.sh" ]]; then
source "$SCRIPT_DIR/auto_deploy_services.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_deploy_services.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_deploy_services.sh"
else
log "ERROR" "主服务部署脚本不存在: $SCRIPT_DIR/auto_deploy_services.sh"
log "ERROR" "主服务部署脚本不存在: $SCRIPT_DIR/arm_auto_deploy_services.sh"
exit 1
fi
# 导入防火墙设置脚本
if [[ -f "$SCRIPT_DIR/auto_firewall_settings.sh" ]]; then
source "$SCRIPT_DIR/auto_firewall_settings.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_firewall_settings.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_firewall_settings.sh"
else
log "ERROR" "防火墙设置脚本不存在: $SCRIPT_DIR/auto_firewall_settings.sh"
log "ERROR" "防火墙设置脚本不存在: $SCRIPT_DIR/arm_auto_firewall_settings.sh"
exit 1
fi
......@@ -182,7 +182,7 @@ function checkServerSpace() {
# 调用空间检查脚本
log "INFO" "执行空间检查脚本..."
system_type=$system_type "$SCRIPT_DIR/auto_check_space.sh"
system_type=$system_type "$SCRIPT_DIR/arm_auto_check_space.sh"
return_code=$?
# 根据返回值处理
......
......@@ -49,42 +49,42 @@ function log() {
# 获取脚本所在目录
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# 导入中间件部署脚本
if [[ -f "$SCRIPT_DIR/auto_middleware_install.sh" ]]; then
source "$SCRIPT_DIR/auto_middleware_install.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_middleware_install.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_middleware_install.sh"
else
log "ERROR" "中间件部署脚本不存在: $SCRIPT_DIR/auto_middleware_install.sh"
log "ERROR" "中间件部署脚本不存在: $SCRIPT_DIR/arm_auto_middleware_install.sh"
exit 1
fi
# 导入文件检查脚本
if [[ -f "$SCRIPT_DIR/auto_file_upload_check.sh" ]]; then
source "$SCRIPT_DIR/auto_file_upload_check.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_file_upload_check.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_file_upload_check.sh"
else
log "ERROR" "文件检查脚本不存在: $SCRIPT_DIR/auto_file_upload_check.sh"
log "ERROR" "文件检查脚本不存在: $SCRIPT_DIR/arm_auto_file_upload_check.sh"
exit 1
fi
# 导入定时任务设置脚本
if [[ -f "$SCRIPT_DIR/auto_crontab_settings.sh" ]]; then
source "$SCRIPT_DIR/auto_crontab_settings.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_crontab_settings.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_crontab_settings.sh"
else
log "ERROR" "定时任务设置脚本不存在: $SCRIPT_DIR/auto_crontab_settings.sh"
log "ERROR" "定时任务设置脚本不存在: $SCRIPT_DIR/arm_auto_crontab_settings.sh"
exit 1
fi
# 导入主服务部署脚本
if [[ -f "$SCRIPT_DIR/auto_deploy_services.sh" ]]; then
source "$SCRIPT_DIR/auto_deploy_services.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_deploy_services.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_deploy_services.sh"
else
log "ERROR" "主服务部署脚本不存在: $SCRIPT_DIR/auto_deploy_services.sh"
log "ERROR" "主服务部署脚本不存在: $SCRIPT_DIR/arm_auto_deploy_services.sh"
exit 1
fi
# 导入防火墙设置脚本
if [[ -f "$SCRIPT_DIR/auto_firewall_settings.sh" ]]; then
source "$SCRIPT_DIR/auto_firewall_settings.sh"
if [[ -f "$SCRIPT_DIR/arm_auto_firewall_settings.sh" ]]; then
source "$SCRIPT_DIR/arm_auto_firewall_settings.sh"
else
log "ERROR" "防火墙设置脚本不存在: $SCRIPT_DIR/auto_firewall_settings.sh"
log "ERROR" "防火墙设置脚本不存在: $SCRIPT_DIR/arm_auto_firewall_settings.sh"
exit 1
fi
......@@ -182,7 +182,7 @@ function checkServerSpace() {
# 调用空间检查脚本
log "INFO" "执行空间检查脚本..."
system_type=$system_type "$SCRIPT_DIR/auto_check_space.sh"
system_type=$system_type "$SCRIPT_DIR/arm_auto_check_space.sh"
return_code=$?
# 根据返回值处理
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论