File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- # ################### x-ui-pro v11.5.0 @ github.com/GFW4Fun ##############################################
2+ # ################### x-ui-pro v11.5.1 @ github.com/GFW4Fun ##############################################
33[[ $EUID -ne 0 ]] && { echo " not root!" ; exec sudo " $0 " " $@ " ; }
44msg () { echo -e " \e[1;37;40m $1 \e[0m" ; }
55msg_ok () { echo -e " \e[1;32;40m $1 \e[0m" ; }
@@ -408,6 +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
410410fi
411+ sudo rm -f /etc/nginx/sites-enabled/* {save,~,bak,backup}
411412# #################################Check Nginx status####################################################
412413if ! systemctl start nginx > /dev/null 2>&1 || ! nginx -t & > /dev/null || nginx -s reload 2>&1 | grep -q error; then
413414 pkill -9 nginx || killall -9 nginx
You can’t perform that action at this time.
0 commit comments