This commit is contained in:
jiaojm
2025-11-30 10:02:15 +08:00
repo.diff.parent 1f16d76d96
repo.diff.commit 8de8c86976

repo.diff.view_file

@@ -112,10 +112,10 @@ function start {
sudo chmod 666 /var/run/docker.sock
if [[ -n "$CI" ]]; then
echo "检测到 CI 环境,正在获取网关 IP..."
DOMAIN_NAME=$(ip route show | grep default | awk '{print $3}')
GATEWAY_IP=$(docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}')
else
#本地环境不做变化
GATEWAY_IP=$(docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}')
DOMAIN_NAME=$(hostname -I | awk '{print $1}')
fi
if [ ! -f "${DATA_DIR}/app.ini" ]; then
echo "DOMAIN_NAME=$DOMAIN_NAME"