Replace github.com/xxx/raw with raw.githubusercontent.com

pull/97/head
Meo597 2025-06-13 02:14:05 +08:00
parent 0529a022f9
commit 3ec86275c7
8 changed files with 32 additions and 32 deletions

View File

@ -31,19 +31,19 @@ Notice: Xray will NOT log to `/var/log/xray/*.log` by default. Configure `"log"`
**Install & Upgrade Xray-core and geodata with `User=nobody`, but will NOT overwrite `User` in existing service files** **Install & Upgrade Xray-core and geodata with `User=nobody`, but will NOT overwrite `User` in existing service files**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install
``` ```
**Update geoip.dat and geosite.dat only** **Update geoip.dat and geosite.dat only**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install-geodata bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install-geodata
``` ```
**Remove Xray, except json and logs** **Remove Xray, except json and logs**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove
``` ```
## Advance ## Advance
@ -51,13 +51,13 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
**Install & Upgrade Xray-core to a pre-release version** **Install & Upgrade Xray-core to a pre-release version**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --beta
``` ```
**Install & Upgrade Xray-core and geodata with `logrotate`, `$time` can be in the format of 12:34:56** **Install & Upgrade Xray-core and geodata with `logrotate`, `$time` can be in the format of 12:34:56**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate $time bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --logrotate $time
``` ```
``` ```
@ -70,25 +70,25 @@ installed: /etc/logrotate.d/xray
**Install & Upgrade Xray-core and geodata with `User=root`, which will overwrite `User` in existing service files** **Install & Upgrade Xray-core and geodata with `User=root`, which will overwrite `User` in existing service files**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install -u root
``` ```
**Install & Upgrade Xray-core without geodata** **Install & Upgrade Xray-core without geodata**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --without-geodata bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --without-geodata
``` ```
**Remove Xray, include json and logs** **Remove Xray, include json and logs**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove --purge
``` ```
## More Usage ## More Usage
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ help
``` ```
## Stargazers over time ## Stargazers over time

View File

@ -32,19 +32,19 @@
**安装并升级 Xray-core 和地理数据,默认使用 `User=nobody`,但不会覆盖已有服务文件中的 `User` 设置** **安装并升级 Xray-core 和地理数据,默认使用 `User=nobody`,但不会覆盖已有服务文件中的 `User` 设置**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install
``` ```
**仅更新 geoip.dat 和 geosite.dat** **仅更新 geoip.dat 和 geosite.dat**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install-geodata bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install-geodata
``` ```
**移除 Xray但保留 json 配置文件和日志** **移除 Xray但保留 json 配置文件和日志**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove
``` ```
## 高级用法 ## 高级用法
@ -52,13 +52,13 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
**安装并升级 Xray-core 到预发布版本** **安装并升级 Xray-core 到预发布版本**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --beta
``` ```
**安装并升级 Xray-core 和地理数据,并启用 `logrotate``$time` 可以是 12:34:56 格式的时间** **安装并升级 Xray-core 和地理数据,并启用 `logrotate``$time` 可以是 12:34:56 格式的时间**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate $time bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --logrotate $time
``` ```
``` ```
@ -71,25 +71,25 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
**安装并升级 Xray-core 和地理数据,使用 `User=root`,会覆盖已有服务文件中的 `User` 设置** **安装并升级 Xray-core 和地理数据,使用 `User=root`,会覆盖已有服务文件中的 `User` 设置**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install -u root
``` ```
**安装并升级 Xray-core但不包含地理数据** **安装并升级 Xray-core但不包含地理数据**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --without-geodata bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --without-geodata
``` ```
**移除 Xray包括 json 配置文件和日志** **移除 Xray包括 json 配置文件和日志**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove --purge
``` ```
## 更多用法 ## 更多用法
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ help
``` ```
## 星标趋势图 ## 星标趋势图

View File

@ -32,19 +32,19 @@
**安裝並升級 Xray-core 和地理數據,預設使用 `User=nobody`,但不會覆蓋已有服務檔案中的 `User` 設定** **安裝並升級 Xray-core 和地理數據,預設使用 `User=nobody`,但不會覆蓋已有服務檔案中的 `User` 設定**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install
``` ```
**僅更新 geoip.dat 和 geosite.dat** **僅更新 geoip.dat 和 geosite.dat**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install-geodata bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install-geodata
``` ```
**移除 Xray但保留 json 設定檔案和日誌** **移除 Xray但保留 json 設定檔案和日誌**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove
``` ```
## 進階用法 ## 進階用法
@ -52,13 +52,13 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
**安裝並升級 Xray-core 到預發布版本** **安裝並升級 Xray-core 到預發布版本**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --beta
``` ```
**安裝並升級 Xray-core 和地理數據,並啟用 `logrotate``$time` 可以是 12:34:56 格式的時間** **安裝並升級 Xray-core 和地理數據,並啟用 `logrotate``$time` 可以是 12:34:56 格式的時間**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate $time bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --logrotate $time
``` ```
``` ```
@ -71,25 +71,25 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
**安裝並升級 Xray-core 和地理數據,使用 `User=root`,會覆蓋已有服務檔案中的 `User` 設定** **安裝並升級 Xray-core 和地理數據,使用 `User=root`,會覆蓋已有服務檔案中的 `User` 設定**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install -u root
``` ```
**安裝並升級 Xray-core但不包含地理數據** **安裝並升級 Xray-core但不包含地理數據**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --without-geodata bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --without-geodata
``` ```
**移除 Xray包括 json 設定檔案和日誌** **移除 Xray包括 json 設定檔案和日誌**
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove --purge
``` ```
## 更多用法 ## 更多用法
``` ```
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ help
``` ```
## 星標趨勢圖 ## 星標趨勢圖

View File

@ -13,7 +13,7 @@ apk add curl
#### Download Installation Script #### Download Installation Script
```sh ```sh
curl -O https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh
``` ```
#### Run Installation Script #### Run Installation Script

View File

@ -13,7 +13,7 @@ apk add curl
#### 下载安装脚本 #### 下载安装脚本
```sh ```sh
curl -O https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh
``` ```
#### 运行安装脚本 #### 运行安装脚本

View File

@ -13,7 +13,7 @@ apk add curl
#### 下載安裝腳本 #### 下載安裝腳本
```sh ```sh
curl -O https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh
``` ```
#### 執行安裝腳本 #### 執行安裝腳本

View File

@ -165,7 +165,7 @@ install_startup_service_file() {
OPENRC='0' OPENRC='0'
if [ ! -f '/etc/init.d/xray' ]; then if [ ! -f '/etc/init.d/xray' ]; then
mkdir "${TMP_DIRECTORY}init.d/" mkdir "${TMP_DIRECTORY}init.d/"
if ! curl -f -L -o "${TMP_DIRECTORY}init.d/xray" https://github.com/XTLS/Xray-install/raw/main/alpinelinux/init.d/xray -sS; then if ! curl -f -L -o "${TMP_DIRECTORY}init.d/xray" https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/init.d/xray -sS; then
echo 'error: Failed to start service file download! Please check your network or try again.' echo 'error: Failed to start service file download! Please check your network or try again.'
exit 1 exit 1
fi fi

View File

@ -7,7 +7,7 @@
# https://github.com/XTLS/Xray-install # https://github.com/XTLS/Xray-install
# The URL of the script is: # The URL of the script is:
# https://github.com/XTLS/Xray-install/raw/main/install-release.sh # https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh
# If the script executes incorrectly, go to: # If the script executes incorrectly, go to:
# https://github.com/XTLS/Xray-install/issues # https://github.com/XTLS/Xray-install/issues