debug
This commit is contained in:
@@ -14,7 +14,6 @@ fi
|
||||
# shellcheck disable=SC1090
|
||||
source "${CONFIG_FILE}"
|
||||
|
||||
: "${GIT_REPO_URL:=YOUR_GIT_REPO_URL}"
|
||||
: "${GIT_BRANCH:=main}"
|
||||
: "${API_DOMAIN:=api.domain.com}"
|
||||
: "${ADMIN_DOMAIN:=admin.domain}"
|
||||
@@ -31,15 +30,16 @@ DOMAINCHECK_DIR="${BASE_DIR}/domainCheck"
|
||||
DOMAIN_API_DIR="${BASE_DIR}/domain-api"
|
||||
DOMAIN_WEB_DIR="${BASE_DIR}/domain-web"
|
||||
|
||||
if [[ "${GIT_REPO_URL}" == "YOUR_GIT_REPO_URL" || "${DB_PASSWORD}" == "CHANGE_ME_DB_PASSWORD" ]]; then
|
||||
echo "请先修改配置文件中的必填项:GIT_REPO_URL / DB_PASSWORD"
|
||||
if [[ "${DB_PASSWORD}" == "CHANGE_ME_DB_PASSWORD" ]]; then
|
||||
echo "请先修改配置文件中的必填项:DB_PASSWORD"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "${WORKSPACE_ROOT}"
|
||||
cd "${WORKSPACE_ROOT}"
|
||||
if [[ ! -d "${REPO_DIR}/.git" ]]; then
|
||||
git clone "${GIT_REPO_URL}" getDomain
|
||||
echo "未找到仓库目录:${REPO_DIR}"
|
||||
echo "全新机器首次部署,必须先手动执行 git clone,把仓库拉到 /www/wwwroot/getDomain"
|
||||
exit 1
|
||||
fi
|
||||
cd "${REPO_DIR}"
|
||||
git fetch --all
|
||||
|
||||
Reference in New Issue
Block a user