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 29, 2024
1 parent 6f5a2e3 commit 90c848b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-ui-pro.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#################### x-ui-pro v8.0.0 @ github.com/GFW4Fun ##############################################
#################### x-ui-pro v8.0.1 @ github.com/GFW4Fun ##############################################
[[ $EUID -ne 0 ]] && echo "not root!" && exec sudo "$0" "$@"
##############################INFO######################################################################
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
Expand Down Expand Up @@ -293,7 +293,7 @@ fi
######################cronjob for ssl/reload service/cloudflareips######################################
crontab -l | grep -v "nginx\|certbot\|x-ui\|cloudflareips" | crontab -
(crontab -l 2>/dev/null; echo "@daily x-ui restart > /dev/null 2>&1 && systemctl reload tor;") | crontab -
(crontab -l 2>/dev/null; echo "@daily nginx -s reload 2>&1 | grep -q error && \$(pkill -9 nginx;nginx -c /etc/nginx/nginx.conf;nginx -s reload);") | crontab -
(crontab -l 2>/dev/null; echo "@daily bash -c 'nginx -s reload 2>&1 | grep -q error && { pkill nginx; nginx -c /etc/nginx/nginx.conf; nginx -s reload; }'") | 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##########################################################
Expand Down

0 comments on commit 90c848b

Please sign in to comment.