From 4e1fc2107f9e052a0d3ad61f8b215f977d259228 Mon Sep 17 00:00:00 2001 From: windyday <63159472+CoverUp137@users.noreply.github.com> Date: Sun, 22 Jun 2025 02:45:44 +0800 Subject: [PATCH] Update amy4Server.sh --- amy/amy4Server.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/amy/amy4Server.sh b/amy/amy4Server.sh index e345f04..cdd52af 100644 --- a/amy/amy4Server.sh +++ b/amy/amy4Server.sh @@ -95,10 +95,10 @@ InstallFiles() { fi mkdir -p "$amy4Server_install_dir" || Error "Create amy4Server install directory failed." cd "$amy4Server_install_dir" || exit 1 - # 修改下载命令,使用 GitHub 替代原链接 - github_repo="https://github.com/CoverUp137/cns/releases/download/amy" + + github_repo="https://gh.0507.dpdns.org/https://github.com/CoverUp137/cns/releases/download/amy" download_tool amy4Server "$github_repo/amy4Server-${os}_${machine}${softfloat}" || Error "amy4Server download failed." - download_tool amy4Server.init https://raw.githubusercontent.com/CoverUp137/cns/refs/heads/main/amy/amy4Server.init || Error "amy4Server.init download failed." + download_tool amy4Server.init https://gh.0507.dpdns.org/https://raw.githubusercontent.com/CoverUp137/cns/refs/heads/main/amy/amy4Server.init || Error "amy4Server.init download failed." [ -f '/etc/rc.common' ] && rcCommon='/etc/rc.common' sed -i "s~#!/bin/sh~#!$SHELL $rcCommon~" amy4Server.init sed -i "s~\[amy4Server_install_dir\]~$amy4Server_install_dir~g" amy4Server.init @@ -119,7 +119,7 @@ InstallFiles() { EOF chmod -R +rwx "$amy4Server_install_dir" /etc/init.d/amy4Server if type systemctl &>/dev/null && [ -z "$(systemctl --failed|grep -q 'Host is down')" ]; then - download_tool /lib/systemd/system/amy4Server.service https://raw.githubusercontent.com/CoverUp137/cns/refs/heads/main/amy/amy4Server.service || Error "amy4Server.service download failed." + download_tool /lib/systemd/system/amy4Server.service https://gh.0507.dpdns.org/https://raw.githubusercontent.com/CoverUp137/cns/refs/heads/main/amy/amy4Server.service || Error "amy4Server.service download failed." chmod +rwx /lib/systemd/system/amy4Server.service sed -i "s~\[amy4Server_install_dir\]~$amy4Server_install_dir~g" /lib/systemd/system/amy4Server.service systemctl daemon-reload