Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNebulosa <85841412+nebulosa2007@users.noreply.github.com>2026-01-03 08:41:40 +0300
committerGitHub <noreply@github.com>2026-01-03 08:41:40 +0300
commit719ae0e0144a76ea83e8600f9216e40b7aeb3030 (patch)
tree7d857ac0bd81eeaf34814b3ce137cfa0f621e0c4 /install.sh
parent5bcf6a8aeb676f33fb342c0b494d44fabcdeafc9 (diff)
Remove wget dependency from everywhere (#3598)
* Remove wget dependency * Merge branch 'curl_only' of https://github.com/nebulosa2007/3x-ui into nebulosa2007-curl_only --------- Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/install.sh b/install.sh
index 0c131377..4dba8f17 100644
--- a/install.sh
+++ b/install.sh
@@ -59,29 +59,29 @@ is_domain() {
install_base() {
case "${release}" in
ubuntu | debian | armbian)
- apt-get update && apt-get install -y -q wget curl tar tzdata openssl socat
+ apt-get update && apt-get install -y -q curl tar tzdata openssl socat
;;
fedora | amzn | virtuozzo | rhel | almalinux | rocky | ol)
- dnf -y update && dnf install -y -q wget curl tar tzdata openssl socat
+ dnf -y update && dnf install -y -q curl tar tzdata openssl socat
;;
centos)
if [[ "${VERSION_ID}" =~ ^7 ]]; then
- yum -y update && yum install -y wget curl tar tzdata openssl socat
+ yum -y update && yum install -y curl tar tzdata openssl socat
else
- dnf -y update && dnf install -y -q wget curl tar tzdata openssl socat
+ dnf -y update && dnf install -y -q curl tar tzdata openssl socat
fi
;;
arch | manjaro | parch)
- pacman -Syu && pacman -Syu --noconfirm wget curl tar tzdata openssl socat
+ pacman -Syu && pacman -Syu --noconfirm curl tar tzdata openssl socat
;;
opensuse-tumbleweed | opensuse-leap)
- zypper refresh && zypper -q install -y wget curl tar timezone openssl socat
+ zypper refresh && zypper -q install -y curl tar timezone openssl socat
;;
alpine)
- apk update && apk add wget curl tar tzdata openssl socat
+ apk update && apk add curl tar tzdata openssl socat
;;
*)
- apt-get update && apt-get install -y -q wget curl tar tzdata openssl socat
+ apt-get update && apt-get install -y -q curl tar tzdata openssl socat
;;
esac
}
@@ -587,7 +587,7 @@ install_x-ui() {
fi
fi
echo -e "Got x-ui latest version: ${tag_version}, beginning the installation..."
- wget --inet4-only -N -O ${xui_folder}-linux-$(arch).tar.gz https://github.com/MHSanaei/3x-ui/releases/download/${tag_version}/x-ui-linux-$(arch).tar.gz
+ curl -4fLRo ${xui_folder}-linux-$(arch).tar.gz -z ${xui_folder}-linux-$(arch).tar.gz https://github.com/MHSanaei/3x-ui/releases/download/${tag_version}/x-ui-linux-$(arch).tar.gz
if [[ $? -ne 0 ]]; then
echo -e "${red}Downloading x-ui failed, please be sure that your server can access GitHub ${plain}"
exit 1
@@ -604,13 +604,13 @@ install_x-ui() {
url="https://github.com/MHSanaei/3x-ui/releases/download/${tag_version}/x-ui-linux-$(arch).tar.gz"
echo -e "Beginning to install x-ui $1"
- wget --inet4-only -N -O ${xui_folder}-linux-$(arch).tar.gz ${url}
+ curl -4fLRo ${xui_folder}-linux-$(arch).tar.gz -z ${xui_folder}-linux-$(arch).tar.gz ${url}
if [[ $? -ne 0 ]]; then
echo -e "${red}Download x-ui $1 failed, please check if the version exists ${plain}"
exit 1
fi
fi
- wget --inet4-only -O /usr/bin/x-ui-temp https://raw.githubusercontent.com/MHSanaei/3x-ui/main/x-ui.sh
+ curl -4fLRo /usr/bin/x-ui-temp https://raw.githubusercontent.com/MHSanaei/3x-ui/main/x-ui.sh
if [[ $? -ne 0 ]]; then
echo -e "${red}Failed to download x-ui.sh${plain}"
exit 1
@@ -662,7 +662,7 @@ install_x-ui() {
fi
if [[ $release == "alpine" ]]; then
- wget --inet4-only -O /etc/init.d/x-ui https://raw.githubusercontent.com/MHSanaei/3x-ui/main/x-ui.rc
+ curl -4fLRo /etc/init.d/x-ui https://raw.githubusercontent.com/MHSanaei/3x-ui/main/x-ui.rc
if [[ $? -ne 0 ]]; then
echo -e "${red}Failed to download x-ui.rc${plain}"
exit 1