Skip to content

Commit e134eaf

Browse files
authored
Update x-ui-pro.sh
1 parent d09f2c9 commit e134eaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

x-ui-pro.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v12.0.1 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v12.0.2 @ github.com/GFW4Fun ##############################################
33
[[ $EUID -ne 0 ]] && { echo "not root!"; exec sudo "$0" "$@"; }
44
msg() { echo -e "\e[1;37;40m $1 \e[0m";}
55
msg_ok() { echo -e "\e[1;32;40m $1 \e[0m";}
@@ -12,6 +12,10 @@ msg_inf ' _ _ _ _ _____ _____ ______ _____ '
1212
msg_inf ' \___/ | | | ___ |_____] |_____/ | |'
1313
msg_inf ' _/ \_ |_____| __|__ | | \_ |_____|';
1414
hrline
15+
###########################################Fix VPS#######################################################
16+
sudo bash -c 'c=$(grep -c "^nameserver" /etc/resolv.conf); for d in 8.8.8.8 1.1.1.1; do grep -q "^nameserver $d" /etc/resolv.conf || { [ $c -lt 3 ] && echo "nameserver $d" >> /etc/resolv.conf && c=$((c+1)); }; done'
17+
18+
sudo bash -c 'type apt&&{ apt update&&apt install -y build-essential; }||type dnf&&{ dnf groupinstall -y "Development Tools"; }||type yum&&{ yum groupinstall -y "Development Tools"; }||type pacman&&{ pacman -Sy --noconfirm base-devel; }'
1519
##################################Random Port and Path ###################################################
1620
mkdir -p ${HOME}/.cache
1721
Pak=$(command -v apt || command -v dnf); Pak=${Pak:-apt}

0 commit comments

Comments
 (0)