Skip to content

Commit

Permalink
Update x-ui-pro.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
GFW4Fun authored Oct 24, 2024
1 parent 201d90d commit 873b222
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-ui-pro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,16 +301,15 @@ if [[ $(nginx -t 2>&1 | grep -o 'successful') != "successful" ]]; then
exit 1
else
systemctl start nginx
x-ui start
fi
######################cronjob for ssl/reload service/cloudflareips######################################
crontab -l | grep -v "certbot\|x-ui\|cloudflareips" | crontab -
(crontab -l 2>/dev/null; echo '@daily sudo systemctl restart x-ui nginx tor > /dev/null 2>&1') | crontab -
(crontab -l 2>/dev/null; echo '@weekly bash /etc/nginx/cloudflareips.sh > /dev/null 2>&1;') | crontab -
(crontab -l 2>/dev/null; echo '@monthly certbot renew --nginx --force-renewal --non-interactive --post-hook "nginx -s reload" > /dev/null 2>&1;') | crontab -
##################################Show Details##########################################################
if systemctl is-active --quiet x-ui; then
x-ui start
clear
if systemctl is-active --quiet x-ui; then clear
printf '0\n' | x-ui | grep --color=never -i ':'
msg_inf "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
nginx -T | grep -i 'ssl_certificate\|ssl_certificate_key'
Expand Down

0 comments on commit 873b222

Please sign in to comment.