From 0f93d9fa781df2052c331fe30d9731b6aa3739f6 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Thu, 23 May 2024 16:09:50 +0800 Subject: [PATCH] Update pi.sh --- zero3/pi.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/zero3/pi.sh b/zero3/pi.sh index a0324e6..ecd6319 100644 --- a/zero3/pi.sh +++ b/zero3/pi.sh @@ -243,6 +243,17 @@ install_1panel_on_linux() { curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh intro="https://1panel.cn/docs/installation/cli/" if command -v 1pctl &>/dev/null; then + echo '{ + "registry-mirrors": [ + "https://docker.mirrors.ustc.edu.cn", + "https://hub-mirror.c.163.com", + "https://docker.m.daocloud.io", + "https://ghcr.io", + "https://mirror.baidubce.com", + "https://docker.nju.edu.cn" + ] +}' | sudo tee /etc/docker/daemon.json >/dev/null + sudo /etc/init.d/docker restart green "如何卸载1panel 请参考:$intro" else red "未安装1panel" @@ -488,7 +499,7 @@ install_teslamate() { } check_docker_compose() { - if which docker-compose > /dev/null 2>&1; then + if which docker-compose >/dev/null 2>&1; then echo "Docker Compose is installed." docker-compose --version else @@ -497,8 +508,8 @@ check_docker_compose() { fi } -# 安装DDNSTO -install_ddnsto(){ +# 安装DDNSTO +install_ddnsto() { green "请登录 https://www.ddnsto.com/app/#/devices 在控制台复制 令牌 令牌=token" sh -c "$(curl -sSL http://fw.koolcenter.com/binary/ddnsto/linux/install_ddnsto_linux.sh)" }