From 873b2222c3d1c4d2140d3309f46d04ad0b7c6af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xue=20Xianliang=20=E8=87=AA=E7=94=B1=E7=9A=84=E4=B8=96?= =?UTF-8?q?=E7=95=8C?= <146182012+GFW4Fun@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:23:47 +0330 Subject: [PATCH] Update x-ui-pro.sh --- x-ui-pro.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x-ui-pro.sh b/x-ui-pro.sh index 63498da..c40bb5f 100644 --- a/x-ui-pro.sh +++ b/x-ui-pro.sh @@ -301,6 +301,7 @@ 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 - @@ -308,9 +309,7 @@ crontab -l | grep -v "certbot\|x-ui\|cloudflareips" | 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'