EvgenyNerush / easy-xray

Script for Linux which makes XRay installation and configuration easy
https://t.me/eXRay_chat
BSD 3-Clause "New" or "Revised" License
233 stars 30 forks source link

set curl as required binary #18

Closed maesp closed 1 week ago

maesp commented 2 months ago

test steps

# mv /usr/bin/curl /usr/bin/curl.back
# curl
-bash: curl: command not found

before the change

# cd easy-xray/
# ./ex.sh install
./ex.sh: line 502: curl: command not found
xray installed
customgeo.dat copied to /usr/local/share/xray/
cp: cannot stat './cert.pem': No such file or directory
cp: cannot stat './cert.key': No such file or directory
Generate configs? (Y/n)

after the change

# vim ./ex.sh
# ./ex.sh install
curl not found; required to download the xray installation script
# 
# mv /usr/bin/curl.back /usr/bin/curl
# ./ex.sh install
curl found
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 31107  100 31107    0     0   125k      0 --:--:-- --:--:-- --:--:--  125k
info: Installing Xray v1.8.24 for x86_64
info: unzip is installed.
Downloading Xray archive: https://github.com/XTLS/Xray-core/releases/download/v1.8.24/Xray-linux-64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13.6M  100 13.6M    0     0  20.9M      0 --:--:-- --:--:-- --:--:-- 20.9M
ok.
Downloading verification file for Xray archive: https://github.com/XTLS/Xray-core/releases/download/v1.8.24/Xray-linux-64.zip.dgst
ok.
...