替换脚本域名cafe.cpolar.top
This commit is contained in:
parent
a29db91af6
commit
f97843c841
@ -20,7 +20,7 @@ IMAGE_PROXY="${IMAGE_PROXY:=}"
|
|||||||
# 服务镜像
|
# 服务镜像
|
||||||
IMAGE_TAG="${VERSION:-latest}"
|
IMAGE_TAG="${VERSION:-latest}"
|
||||||
# 服务下载地址
|
# 服务下载地址
|
||||||
DOWNLOAD_URL="https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/xiaoya"
|
DOWNLOAD_URL="https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/xiaoya"
|
||||||
|
|
||||||
# 欢迎信息
|
# 欢迎信息
|
||||||
echo "欢迎使用xiaoya服务部署脚本"
|
echo "欢迎使用xiaoya服务部署脚本"
|
||||||
|
12
zero3/op.sh
12
zero3/op.sh
@ -64,7 +64,7 @@ install_wukongdaily_box() {
|
|||||||
|
|
||||||
# 更新自己
|
# 更新自己
|
||||||
update_scripts() {
|
update_scripts() {
|
||||||
wget -O op.sh https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/zero3/op.sh && chmod +x op.sh
|
wget -O op.sh https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/zero3/op.sh && chmod +x op.sh
|
||||||
./op.sh
|
./op.sh
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
@ -72,7 +72,7 @@ update_scripts() {
|
|||||||
# 安装小雅xiaoya-tvbox
|
# 安装小雅xiaoya-tvbox
|
||||||
# 参考 https://har01d.cn/notes/alist-tvbox.html
|
# 参考 https://har01d.cn/notes/alist-tvbox.html
|
||||||
install_xiaoya_tvbox() {
|
install_xiaoya_tvbox() {
|
||||||
curl -fsSL https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya_tvbox.sh -o xt.sh
|
curl -fsSL https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya_tvbox.sh -o xt.sh
|
||||||
chmod +x xt.sh
|
chmod +x xt.sh
|
||||||
./xt.sh -d /etc/xiaoya
|
./xt.sh -d /etc/xiaoya
|
||||||
green "tvbox 使用的json地址是 http://${host_ip}:4567/sub/0"
|
green "tvbox 使用的json地址是 http://${host_ip}:4567/sub/0"
|
||||||
@ -144,7 +144,7 @@ install_istorepanel() {
|
|||||||
if [ -d "$config_path" ]; then
|
if [ -d "$config_path" ]; then
|
||||||
uci set istorepanel.@main[0].config_path=$config_path
|
uci set istorepanel.@main[0].config_path=$config_path
|
||||||
uci commit istorepanel
|
uci commit istorepanel
|
||||||
wget -qO /tmp/istorepanel.sh https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/zero3/istorepanel.sh
|
wget -qO /tmp/istorepanel.sh https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/zero3/istorepanel.sh
|
||||||
chmod +x /tmp/istorepanel.sh
|
chmod +x /tmp/istorepanel.sh
|
||||||
"/tmp/istorepanel.sh" install
|
"/tmp/istorepanel.sh" install
|
||||||
greenline "———————————————安装完成————————————————————————"
|
greenline "———————————————安装完成————————————————————————"
|
||||||
@ -208,7 +208,7 @@ get_docker_compose_url() {
|
|||||||
fi
|
fi
|
||||||
local repo_path=$(echo "$releases_url" | sed -n 's|https://github.com/\(.*\)/releases/latest|\1|p')
|
local repo_path=$(echo "$releases_url" | sed -n 's|https://github.com/\(.*\)/releases/latest|\1|p')
|
||||||
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
|
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
|
||||||
docker_compose_download_url="https://cafe.cpolar.cn/wkdaily/docker-compose/raw/branch/main/${platform}"
|
docker_compose_download_url="https://cafe.cpolar.top/wkdaily/docker-compose/raw/branch/main/${platform}"
|
||||||
else
|
else
|
||||||
docker_compose_download_url="https://github.com/${repo_path}/releases/download/${tag}/${platform}"
|
docker_compose_download_url="https://github.com/${repo_path}/releases/download/${tag}/${platform}"
|
||||||
fi
|
fi
|
||||||
@ -248,7 +248,7 @@ install_teslamate() {
|
|||||||
echo "Docker Compose is installed."
|
echo "Docker Compose is installed."
|
||||||
docker-compose --version
|
docker-compose --version
|
||||||
mkdir -p /tmp/teslamate
|
mkdir -p /tmp/teslamate
|
||||||
wget -O /tmp/teslamate/docker-compose.yml https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/teslamate/docker-compose.yml
|
wget -O /tmp/teslamate/docker-compose.yml https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/teslamate/docker-compose.yml
|
||||||
cd /tmp/teslamate
|
cd /tmp/teslamate
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
else
|
else
|
||||||
@ -259,7 +259,7 @@ install_teslamate() {
|
|||||||
|
|
||||||
install_xiaoya_allinone() {
|
install_xiaoya_allinone() {
|
||||||
if which docker-compose >/dev/null 2>&1; then
|
if which docker-compose >/dev/null 2>&1; then
|
||||||
bash -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya-all.sh)"
|
bash -c "$(curl -fsSL https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya-all.sh)"
|
||||||
else
|
else
|
||||||
red "Docker Compose 还未安装,正在尝试安装..."
|
red "Docker Compose 还未安装,正在尝试安装..."
|
||||||
green "安装成功后,请您再次执行该选项"
|
green "安装成功后,请您再次执行该选项"
|
||||||
|
14
zero3/pi.sh
14
zero3/pi.sh
@ -190,7 +190,7 @@ install_filemanager() {
|
|||||||
return 7
|
return 7
|
||||||
fi
|
fi
|
||||||
filemanager_file="${filemanager_os}-$filemanager_arch-filebrowser$filemanager_dl_ext"
|
filemanager_file="${filemanager_os}-$filemanager_arch-filebrowser$filemanager_dl_ext"
|
||||||
filemanager_url="https://cafe.cpolar.cn/wkdaily/filebrowser/raw/branch/main/$filemanager_file"
|
filemanager_url="https://cafe.cpolar.top/wkdaily/filebrowser/raw/branch/main/$filemanager_file"
|
||||||
|
|
||||||
|
|
||||||
# Use $PREFIX for compatibility with Termux on Android
|
# Use $PREFIX for compatibility with Termux on Android
|
||||||
@ -359,7 +359,7 @@ install_xiaoya_alist() {
|
|||||||
阿里云盘转存目录folder id: https://www.aliyundrive.com/s/rP9gP3h9asE
|
阿里云盘转存目录folder id: https://www.aliyundrive.com/s/rP9gP3h9asE
|
||||||
'
|
'
|
||||||
# 调用修改后的脚本
|
# 调用修改后的脚本
|
||||||
bash -c "$(curl https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya.sh)"
|
bash -c "$(curl https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya.sh)"
|
||||||
# 检查xiaoyaliu/alist 是否运行,如果运行了 则提示下面的信息,否则退出
|
# 检查xiaoyaliu/alist 是否运行,如果运行了 则提示下面的信息,否则退出
|
||||||
if ! docker ps | grep -q "xiaoyaliu/alist"; then
|
if ! docker ps | grep -q "xiaoyaliu/alist"; then
|
||||||
echo "Error: xiaoyaliu/alist Docker 容器未运行"
|
echo "Error: xiaoyaliu/alist Docker 容器未运行"
|
||||||
@ -527,7 +527,7 @@ install_casaos() {
|
|||||||
|
|
||||||
# 更新自己
|
# 更新自己
|
||||||
update_scripts() {
|
update_scripts() {
|
||||||
wget -O pi.sh https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/zero3/pi.sh && chmod +x pi.sh
|
wget -O pi.sh https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/zero3/pi.sh && chmod +x pi.sh
|
||||||
echo "脚本已更新并保存在当前目录 pi.sh,现在将执行新脚本。"
|
echo "脚本已更新并保存在当前目录 pi.sh,现在将执行新脚本。"
|
||||||
./pi.sh
|
./pi.sh
|
||||||
exit 0
|
exit 0
|
||||||
@ -539,7 +539,7 @@ install_xiaoya_tvbox() {
|
|||||||
local host_ip
|
local host_ip
|
||||||
host_ip=$(hostname -I | awk '{print $1}')
|
host_ip=$(hostname -I | awk '{print $1}')
|
||||||
#wget -qO xt.sh https://d.har01d.cn/update_xiaoya.sh
|
#wget -qO xt.sh https://d.har01d.cn/update_xiaoya.sh
|
||||||
curl -fsSL https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya_tvbox.sh -o xt.sh
|
curl -fsSL https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya_tvbox.sh -o xt.sh
|
||||||
sudo chmod +x xt.sh
|
sudo chmod +x xt.sh
|
||||||
sudo ./xt.sh -d /mnt/xiaoya
|
sudo ./xt.sh -d /mnt/xiaoya
|
||||||
green "tvbox 使用的json地址是 http://${host_ip}:4567/sub/0"
|
green "tvbox 使用的json地址是 http://${host_ip}:4567/sub/0"
|
||||||
@ -557,7 +557,7 @@ install_xiaoya_tvbox() {
|
|||||||
install_teslamate() {
|
install_teslamate() {
|
||||||
check_docker_compose
|
check_docker_compose
|
||||||
sudo mkdir -p /opt/teslamate/import
|
sudo mkdir -p /opt/teslamate/import
|
||||||
wget -O /opt/teslamate/docker-compose.yml https://cafe.vip.cpolar.top//wkdaily/zero3/raw/branch/main/teslamate/docker-compose.yml
|
wget -O /opt/teslamate/docker-compose.yml https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/teslamate/docker-compose.yml
|
||||||
cd /opt/teslamate
|
cd /opt/teslamate
|
||||||
sudo docker-compose up -d
|
sudo docker-compose up -d
|
||||||
}
|
}
|
||||||
@ -580,7 +580,7 @@ install_ddnsto() {
|
|||||||
|
|
||||||
# 安装小雅全家桶
|
# 安装小雅全家桶
|
||||||
install_xiaoya_emby() {
|
install_xiaoya_emby() {
|
||||||
bash -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya-all.sh)"
|
bash -c "$(curl -fsSL https://cafe.cpolar.top/wkdaily/zero3/raw/branch/main/xiaoya/xiaoya-all.sh)"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_docker_compose_url() {
|
get_docker_compose_url() {
|
||||||
@ -602,7 +602,7 @@ get_docker_compose_url() {
|
|||||||
platform="docker-compose-linux-x86_64"
|
platform="docker-compose-linux-x86_64"
|
||||||
local repo_path=$(echo "$releases_url" | sed -n 's|https://github.com/\(.*\)/releases/latest|\1|p')
|
local repo_path=$(echo "$releases_url" | sed -n 's|https://github.com/\(.*\)/releases/latest|\1|p')
|
||||||
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
|
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
|
||||||
docker_compose_download_url="https://cafe.cpolar.cn/wkdaily/docker-compose/raw/branch/main/${platform}"
|
docker_compose_download_url="https://cafe.cpolar.top/wkdaily/docker-compose/raw/branch/main/${platform}"
|
||||||
else
|
else
|
||||||
docker_compose_download_url="https://github.com/${repo_path}/releases/download/${tag}/${platform}"
|
docker_compose_download_url="https://github.com/${repo_path}/releases/download/${tag}/${platform}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user