🔧 chore(docker): force NYIST mirror and remove interactive prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -127,7 +127,7 @@ if [ -z "$REPO_FILE" ]; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mirror=''
|
mirror='nyist'
|
||||||
DRY_RUN=${DRY_RUN:-}
|
DRY_RUN=${DRY_RUN:-}
|
||||||
REPO_ONLY=${REPO_ONLY:-0}
|
REPO_ONLY=${REPO_ONLY:-0}
|
||||||
NO_AUTOSTART=${NO_AUTOSTART:-0}
|
NO_AUTOSTART=${NO_AUTOSTART:-0}
|
||||||
|
|||||||
@@ -296,20 +296,9 @@ install_docker() {
|
|||||||
if command -v docker &>/dev/null; then
|
if command -v docker &>/dev/null; then
|
||||||
info "Docker already installed ($(docker --version)), skipping"
|
info "Docker already installed ($(docker --version)), skipping"
|
||||||
else
|
else
|
||||||
echo ""
|
curl -fsSL https://git.mitsea.com/FlintyLemming/scripts-public/raw/branch/main/linux-managements/install-docker.sh \
|
||||||
echo -e "Use a ${BOLD}domestic mirror${NC} for Docker installation? ${YELLOW}(recommended in China)${NC}"
|
-o /tmp/install-docker.sh
|
||||||
read -rp "Use mirror? [y/N] " use_mirror
|
sudo sh /tmp/install-docker.sh
|
||||||
case "$use_mirror" in
|
|
||||||
[Yy]*)
|
|
||||||
curl -fsSL https://git.mitsea.com/FlintyLemming/scripts-public/raw/branch/main/linux-managements/install-docker.sh \
|
|
||||||
-o /tmp/install-docker.sh
|
|
||||||
sudo sh /tmp/install-docker.sh --mirror nyist
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
|
|
||||||
sudo sh /tmp/get-docker.sh
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
success "Docker installed"
|
success "Docker installed"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user