ci机器里没有ip包,改用docker命令

This commit is contained in:
jiaojm
2025-11-30 09:59:04 +08:00
repo.diff.parent decbb3336e
repo.diff.commit 1f16d76d96

repo.diff.view_file

@@ -115,7 +115,7 @@ function start {
DOMAIN_NAME=$(ip route show | grep default | awk '{print $3}')
else
#本地环境不做变化
DOMAIN_NAME=$(hostname -I | awk '{print $1}')
GATEWAY_IP=$(docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}')
fi
if [ ! -f "${DATA_DIR}/app.ini" ]; then
echo "DOMAIN_NAME=$DOMAIN_NAME"