File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # ################### x-ui-pro v12.0.1 @ github.com/GFW4Fun ##############################################
2
+ # ################### x-ui-pro v12.0.2 @ github.com/GFW4Fun ##############################################
3
3
[[ $EUID -ne 0 ]] && { echo " not root!" ; exec sudo " $0 " " $@ " ; }
4
4
msg () { echo -e " \e[1;37;40m $1 \e[0m" ; }
5
5
msg_ok () { echo -e " \e[1;32;40m $1 \e[0m" ; }
@@ -12,6 +12,10 @@ msg_inf ' _ _ _ _ _____ _____ ______ _____ '
12
12
msg_inf ' \___/ | | | ___ |_____] |_____/ | |'
13
13
msg_inf ' _/ \_ |_____| __|__ | | \_ |_____|' ;
14
14
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; }'
15
19
# #################################Random Port and Path ###################################################
16
20
mkdir -p ${HOME} /.cache
17
21
Pak=$( command -v apt || command -v dnf) ; Pak=${Pak:- apt}
You can’t perform that action at this time.
0 commit comments