Skip to content

Commit fbd32e3

Browse files
authored
Update x-ui-pro.sh
1 parent 087564d commit fbd32e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-ui-pro.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v11.5.1 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v11.5.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";}
@@ -408,7 +408,7 @@ if [[ -f "/etc/nginx/sites-available/$MainDomain" ]]; then
408408
rm -f "/etc/nginx/sites-enabled/default" "/etc/nginx/sites-available/default"
409409
ln -fs "/etc/nginx/sites-available/$MainDomain" "/etc/nginx/sites-enabled/" 2>/dev/null
410410
fi
411-
sudo rm -f /etc/nginx/sites-enabled/*{save,~,bak,backup}
411+
sudo rm -f /etc/nginx/sites-enabled/*{~,bak,backup,save,swp,tmp}
412412
#grep -r "server_name .*\.udomain\.com" /etc/nginx/
413413
##################################Check Nginx status####################################################
414414
if ! systemctl start nginx > /dev/null 2>&1 || ! nginx -t &>/dev/null || nginx -s reload 2>&1 | grep -q error; then

0 commit comments

Comments
 (0)