Update op.sh
This commit is contained in:
parent
5a17346344
commit
a19b258880
|
@ -131,12 +131,17 @@ get_docker_compose_url() {
|
|||
platform="docker-compose-linux-aarch64"
|
||||
fi
|
||||
local repo_path=$(echo "$releases_url" | sed -n 's|https://github.com/\(.*\)/releases/latest|\1|p')
|
||||
docker_compose_download_url="https://github.com/${repo_path}/releases/download/${tag}/${platform}"
|
||||
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
|
||||
docker_compose_download_url="https://cafe.cpolar.cn/wkdaily/docker-compose/raw/branch/main/${platform}"
|
||||
else
|
||||
docker_compose_download_url="https://github.com/${repo_path}/releases/download/${tag}/${platform}"
|
||||
fi
|
||||
echo "$docker_compose_download_url"
|
||||
}
|
||||
|
||||
# 下载并安装Docker Compose
|
||||
do_install_docker_compose() {
|
||||
|
||||
# https://github.com/docker/compose/releases/download/v2.26.0/docker-compose-linux-aarch64
|
||||
# 检查/usr/bin/docker是否存在并且可执行
|
||||
if [ -f "/usr/bin/docker" ] && [ -x "/usr/bin/docker" ]; then
|
||||
|
|
Loading…
Reference in New Issue