Skip to content

Commit c0ed125

Browse files
authored
Update x-ui-pro.sh
1 parent ca63a86 commit c0ed125

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

x-ui-pro.sh

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v2.0.9 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v2.1.0 @ github.com/GFW4Fun ##############################################
33
[[ $EUID -ne 0 ]] && echo "not root!" && sudo su -
44
##############################INFO######################################################################
55
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
@@ -80,17 +80,8 @@ IP6=$(ip route get 2620:fe::fe | grep -Po -- 'src \K\S*')
8080
[[ $IP4 =~ $IP4_REGEX ]] || IP4=$(curl -s ipv4.icanhazip.com);
8181
[[ $IP6 =~ $IP6_REGEX ]] || IP6=$(curl -s ipv6.icanhazip.com);
8282
##############################Install SSL###############################################################
83-
for D in `find /etc/letsencrypt/live -mindepth 1 -type d -exec basename {} \;`; do
84-
if [[ $D == "${MainDomain}" ]]; then
85-
certbot delete --non-interactive --cert-name ${MainDomain}
86-
fi
87-
done
88-
8983
certbot certonly --standalone --non-interactive --force-renewal --agree-tos --register-unsafely-without-email --cert-name "$MainDomain" -d "$domain"
90-
9184
if [[ ! -d "/etc/letsencrypt/live/${MainDomain}/" ]]; then
92-
unlink "/etc/nginx/sites-enabled/${MainDomain}" >/dev/null 2>&1
93-
rm -f "/etc/nginx/sites-enabled/${MainDomain}" "/etc/nginx/sites-available/${MainDomain}"
9485
systemctl start nginx >/dev/null 2>&1
9586
msg_err "$MainDomain SSL could not be generated! Check Domain/IP Or Enter new domain!" && exit 1
9687
fi

0 commit comments

Comments
 (0)