diff --git a/scripts/const.sh b/scripts/const.sh index ff03ddf..0c769ad 100644 --- a/scripts/const.sh +++ b/scripts/const.sh @@ -30,14 +30,15 @@ export DOCKER_VERSION=28.5.1 DOCKER_URL="https://download.docker.com/linux/static/stable" DOCKER_MIRROR="https://download.jumpserver.org/docker/docker-ce/linux/static/stable" -if [[ "${DOCKER_IMAGE_MIRROR}" == "1" ]];then +if [[ "${DOCKER_IMAGE_MIRROR}" == "1" || "${DOCKER_BIN_MIRROR}" == "1" ]];then DOCKER_URL=${DOCKER_MIRROR} fi export DOCKER_COMPOSE_VERSION=v2.40.3 COMPOSE_URL="https://github.com/docker/compose/releases/download" COMPOSE_MIRROR="https://download.jumpserver.org/docker/compose/releases/download" -if [[ "${DOCKER_IMAGE_MIRROR}" == "1" ]];then + +if [[ "${DOCKER_IMAGE_MIRROR}" == "1" || "${DOCKER_BIN_MIRROR}" == "1" ]];then COMPOSE_URL=${COMPOSE_MIRROR} fi