From 30beadbb488389ed4b35903a199a74d626c88aa4 Mon Sep 17 00:00:00 2001 From: "cnb.dg2025-08" Date: Sat, 13 Sep 2025 11:13:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=96=87=E4=BB=B6=20amy4Serv?= =?UTF-8?q?er.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amy/amy4Server.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amy/amy4Server.sh b/amy/amy4Server.sh index 5f3021b..453b5ed 100644 --- a/amy/amy4Server.sh +++ b/amy/amy4Server.sh @@ -95,8 +95,8 @@ InstallFiles() { fi mkdir -p "$amy4Server_install_dir" || Error "Create amy4Server install directory failed." cd "$amy4Server_install_dir" || exit 1 - download_tool amy4Server https://git.dihe.moe/dongge/cns_xbl/raw/branch/main/amy/${os}_${machine} || Error "amy4Server download failed." - download_tool amy4Server.init https://git.dihe.moe/dongge/cns_xbl/raw/branch/main/amy/amy4Server.init || Error "amy4Server.init download failed." + download_tool amy4Server https://cnb.cool/dg2025-08/Cax/-/git/raw/main/amy/${os}_${machine} || Error "amy4Server download failed." + download_tool amy4Server.init https://cnb.cool/dg2025-08/Cax/-/git/raw/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 @@ -117,7 +117,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://git.dihe.moe/dongge/cns_xbl/raw/branch/main/amy/amy4Server.service || Error "amy4Server.service download failed." + download_tool /lib/systemd/system/amy4Server.service https://cnb.cool/dg2025-08/Cax/-/git/raw/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