Skip to content

Commit c997126

Browse files
authored
Update x-ui-pro.sh
1 parent f4e9d1d commit c997126

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

x-ui-pro.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v6.6.1 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v6.6.2 @ 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";}
@@ -70,7 +70,7 @@ if [[ ${INSTALL} == *"y"* ]]; then
7070
systemctl daemon-reload
7171
systemctl enable nginx.service
7272
systemctl enable tor.service
73-
systemctl enable crond.service
73+
systemctl enable crond.service > /dev/null
7474
systemctl start nginx
7575
systemctl start tor
7676
fi
@@ -157,7 +157,7 @@ add_slashes() {
157157
########################################Update X-UI Port/Path for first INSTALL#########################
158158
UPDATE_XUIDB(){
159159
if [[ -f $XUIDB ]]; then
160-
x-ui stop
160+
x-ui stop > /dev/null 2>&1
161161
fuser "$XUIDB" 2>/dev/null
162162
RNDSTRSLASH=$(add_slashes "$RNDSTR")
163163
sqlite3 "$XUIDB" << EOF
@@ -183,7 +183,7 @@ if ! systemctl is-active --quiet x-ui; then
183183
fi
184184
###################################Get Installed XUI Port/Path##########################################
185185
if [[ -f $XUIDB ]]; then
186-
x-ui stop
186+
x-ui stop > /dev/null 2>&1
187187
fuser "$XUIDB" 2>/dev/null
188188
PORT=$(sqlite3 "${XUIDB}" "SELECT value FROM settings WHERE key='webPort' LIMIT 1;" 2>&1)
189189
RNDSTR=$(sqlite3 "${XUIDB}" "SELECT value FROM settings WHERE key='webBasePath' LIMIT 1;" 2>&1)
@@ -300,7 +300,7 @@ if [[ $(nginx -t 2>&1 | grep -o 'successful') != "successful" ]]; then
300300
systemctl restart nginx
301301
else
302302
systemctl start nginx
303-
x-ui start
303+
x-ui start > /dev/null 2>&1
304304
fi
305305
######################cronjob for ssl/reload service/cloudflareips######################################
306306
crontab -l | grep -v "certbot\|x-ui\|cloudflareips" | crontab -

0 commit comments

Comments
 (0)