File tree 1 file changed +1
-10
lines changed
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # ################### x-ui-pro v2.0.9 @ github.com/GFW4Fun ##############################################
2
+ # ################### x-ui-pro v2.1.0 @ github.com/GFW4Fun ##############################################
3
3
[[ $EUID -ne 0 ]] && echo " not root!" && sudo su -
4
4
# #############################INFO######################################################################
5
5
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*')
80
80
[[ $IP4 =~ $IP4_REGEX ]] || IP4=$( curl -s ipv4.icanhazip.com) ;
81
81
[[ $IP6 =~ $IP6_REGEX ]] || IP6=$( curl -s ipv6.icanhazip.com) ;
82
82
# #############################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
-
89
83
certbot certonly --standalone --non-interactive --force-renewal --agree-tos --register-unsafely-without-email --cert-name " $MainDomain " -d " $domain "
90
-
91
84
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} "
94
85
systemctl start nginx > /dev/null 2>&1
95
86
msg_err " $MainDomain SSL could not be generated! Check Domain/IP Or Enter new domain!" && exit 1
96
87
fi
You can’t perform that action at this time.
0 commit comments