Update pi.sh

This commit is contained in:
悟空的日常镜像仓库 2024-05-23 16:09:50 +08:00
parent 6bfdb4d0d4
commit 0f93d9fa78
1 changed files with 14 additions and 3 deletions

View File

@ -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 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/" intro="https://1panel.cn/docs/installation/cli/"
if command -v 1pctl &>/dev/null; then 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" green "如何卸载1panel 请参考:$intro"
else else
red "未安装1panel" red "未安装1panel"