docker/nginx/nginxbuilder.sh

22 lines
522 B
Bash
Raw Normal View History

2025-05-15 13:40:19 +08:00
#!/bin/bash
# 这个脚本现在只是一个包装器,调用两个新脚本
echo "步骤1: 替换配置文件中的环境变量..."
./replace_vars.sh
# 检查替换结果是否成功
if [ $? -ne 0 ]; then
echo "错误: 变量替换失败,中止构建"
exit 1
fi
echo ""
echo "变量替换已完成,请检查 temp_vhosts/ 目录中的文件"
echo "确认替换结果无误后按回车键继续构建镜像或按Ctrl+C取消"
read -p ""
echo ""
echo "步骤2: 构建Nginx镜像..."
./build_image.sh