From 634aeed41972c7f07e9207b652dc913792ae7cbc Mon Sep 17 00:00:00 2001 From: donggg <771281703@qq.com> Date: Sat, 20 May 2023 13:02:38 +0000 Subject: [PATCH] aa --- cns.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cns.sh b/cns.sh index 0f94dd1..cd3642a 100644 --- a/cns.sh +++ b/cns.sh @@ -74,8 +74,8 @@ InstallFiles() { fi mkdir -p "$cns_install_dir" || Error "Create cns install directory failed." cd "$cns_install_dir" || exit 1 - $download_tool_cmd cns https://gitcode.net/Dfsaadsa/Cns/-/raw/master/linux_${machine}${softfloat} || Error "cns download failed." - $download_tool_cmd cns.init https://gitcode.net/Dfsaadsa/Cns/-/raw/master/cns.init || Error "cns.init download failed." + $download_tool_cmd cns https://notabug.org/donggg/Cns/raw/master/linux_${machine}${softfloat} || Error "cns download failed." + $download_tool_cmd cns.init https://notabug.org/donggg/Cns/raw/master/cns.init || Error "cns.init download failed." [ -f '/etc/rc.common' ] && rcCommon='/etc/rc.common' sed -i "s~#!/bin/sh~#!$SHELL $rcCommon~" cns.init sed -i "s~\[cns_start_cmd\]~$cns_start_cmd~g" cns.init @@ -102,7 +102,7 @@ InstallFiles() { EOF chmod -R +rwx "$cns_install_dir" /etc/init.d/cns if type systemctl && [ -z "$(systemctl --failed|grep -q 'Host is down')" ]; then - $download_tool_cmd /lib/systemd/system/cns.service https://gitcode.net/Dfsaadsa/Cns/-/raw/master/cns.service || Error "cns.service download failed." + $download_tool_cmd /lib/systemd/system/cns.service https://notabug.org/donggg/Cns/raw/master/cns.service || Error "cns.service download failed." chmod +rwx /lib/systemd/system/cns.service sed -i "s~\[cns_install_dir\]~$cns_install_dir~g" /lib/systemd/system/cns.service systemctl daemon-reload