#!/bin/bash #容器启动之后需要初始环境 . /3rd/env.env CENTER_CODE=$1 #容器编号 if [ ! -n "$CENTER_CODE" ]; then echo "Please enter a code" exit 1 else echo "starting code generation" fi ./3rd/replace.sh "${CENTER_CODE}" #****************************** bussiness info replace docker************ #MYSQL_HOST="10.100.0.5" DEV_BASE_PATH=/data/mmogrun/publish CTRL_SH_PATH=${DEV_BASE_PATH}/ctrl_sh TOOLS_PATH=${DEV_BASE_PATH}/tools SQL_FILE_PATH=${TOOLS_PATH}/sql # shellcheck disable=SC2164 cd ${SQL_FILE_PATH} mysql -h${MYSQL_HOST} -ummog -pmmog