mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 20:50:06 +00:00
更新脚本安装方式
This commit is contained in:
9
script/fetch.sh
Normal file
9
script/fetch.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
if [[ -z "${CN}" ]]; then
|
||||
GITHUB_RAW_URL="raw.githubusercontent.com/naiba/nezha/master"
|
||||
else
|
||||
GITHUB_RAW_URL="cdn.jsdelivr.net/gh/naiba/nezha@master"
|
||||
fi
|
||||
mkdir -p /opt/nezha
|
||||
chmod 777 /opt/nezha
|
||||
curl -sSL https://${GITHUB_RAW_URL}/script/install.sh -o /opt/nezha/nezha.sh
|
||||
chmod +x /opt/nezha/nezha.sh
|
||||
Reference in New Issue
Block a user