Alpine Linux: Replace raw.githubusercontent.com with github.com/xxx/raw (#89)

pull/91/head
Meow 2025-05-16 15:57:43 +08:00 committed by GitHub
parent 3292b9eeae
commit 0529a022f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 157 additions and 158 deletions

View File

@ -13,7 +13,7 @@ apk add curl
#### Download Installation Script #### Download Installation Script
```sh ```sh
curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh curl -O https://github.com/XTLS/Xray-install/raw/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://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh curl -O https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh
``` ```
#### 运行安装脚本 #### 运行安装脚本

View File

@ -13,7 +13,7 @@ apk add curl
#### 下載安裝腳本 #### 下載安裝腳本
```sh ```sh
curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh curl -O https://github.com/XTLS/Xray-install/raw/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://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/init.d/xray -sS; then if ! curl -f -L -o "${TMP_DIRECTORY}init.d/xray" https://github.com/XTLS/Xray-install/raw/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://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh # https://github.com/XTLS/Xray-install/raw/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
@ -762,8 +762,7 @@ remove_xray() {
echo 'error: Failed to remove Xray.' echo 'error: Failed to remove Xray.'
exit 1 exit 1
else else
for i in "${!delete_files[@]}" for i in "${!delete_files[@]}"; do
do
echo "removed: ${delete_files[$i]}" echo "removed: ${delete_files[$i]}"
done done
systemctl daemon-reload systemctl daemon-reload