Skip to content

Commit

Permalink
Merge pull request chaitin#561 from nmgliangwei/main
Browse files Browse the repository at this point in the history
Update upgrade.sh
  • Loading branch information
DeronW authored Jan 4, 2024
2 parents 6f264ce + e0fe48b commit 7ccea91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions release/beta/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ else
fi
fi

container_id=$(docker ps --filter ancestor=chaitin/safeline-mgt-api --format '{{.ID}}')
mount_path=$(docker inspect --format '{{range .Mounts}}{{if eq .Destination "/logs"}}{{.Source}}{{end}}{{end}}' $container_id)
safeline_path=$(dirname $mount_path)
container_id=$(docker ps -n 1 --filter name=.*safeline-mgt.* --format '{{.ID}}')
safeline_path=$(docker inspect --format '{{index .Config.Labels "com.docker.compose.project.working_dir"}}' $container_id)

while [ -z "$safeline_path" ]; do
echo -e -n "\033[34m[SafeLine] 未发现正在运行的雷池,请输入雷池安装路径 (留空则为 '$(pwd)'): \033[0m"
Expand Down

0 comments on commit 7ccea91

Please sign in to comment.