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
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)"
}