From e9fca06f18ef6fa196a36c8b5ef7339ce5ec5e82 Mon Sep 17 00:00:00 2001 From: dongge <771281703@qq.com> Date: Thu, 24 Jul 2025 00:05:22 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20xray/xray.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xray/xray.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xray/xray.sh b/xray/xray.sh index a67b45a..a80fe44 100644 --- a/xray/xray.sh +++ b/xray/xray.sh @@ -267,8 +267,8 @@ InstallFile() { mkdir -p "${xray_install_directory:=/usr/local/xray}" || Error "Create xray install directory failed." cd "$xray_install_directory" || Error "Create cns install directory failed." #install xray - $download_tool_cmd xray https://github.com/a131878/cns/releases/tag/xray/${xray_UPX}/${machine}${softfloat} || Error "xray download failed." - $download_tool_cmd xray.init https://github.com/a131878/cns/blob/main/xray/xray.init || Error "xray.init download failed." + $download_tool_cmd xray https://git.dihe.moe/dongge/cns_xbl/raw/branch/main/xray/${xray_UPX}/${machine}${softfloat} || Error "xray download failed." + $download_tool_cmd xray.init https://git.dihe.moe/dongge/cns_xbl/raw/branch/main/xray/xray.init || Error "xray.init download failed." [ -f '/etc/rc.common' ] && rcCommon='/etc/rc.common' sed -i "s~#!/bin/sh~#!$SHELL $rcCommon~" xray.init sed -i "s~\[xray_install_directory\]~$xray_install_directory~g" xray.init @@ -277,7 +277,7 @@ InstallFile() { ln -s "$xray_install_directory/xray.init" /etc/init.d/xray chmod -R +rwx "$xray_install_directory" /etc/init.d/xray if which systemctl &>/dev/null && [ -z "$(systemctl --failed|grep -q 'Host is down')" ]; then - $download_tool_cmd /lib/systemd/system/xray.service https://github.com/a131878/cns/blob/main/xray/xray.service || Error "xray.service download failed." + $download_tool_cmd /lib/systemd/system/xray.service https://git.dihe.moe/dongge/cns_xbl/raw/branch/main/xray/xray.service || Error "xray.service download failed." chmod +rwx /lib/systemd/system/xray.service sed -i "s~\[xray_install_directory\]~$xray_install_directory~g" /lib/systemd/system/xray.service systemctl daemon-reload