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 23, 2024
1 parent b64b073 commit 316d998
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x-ui-pro.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#################### x-ui-pro v6.1.2 @ github.com/GFW4Fun ##############################################
#################### x-ui-pro v6.1.3 @ github.com/GFW4Fun ##############################################
[[ $EUID -ne 0 ]] && echo "not root!" && sudo su -
##############################INFO######################################################################
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
Expand Down Expand Up @@ -180,9 +180,8 @@ if [[ -f $XUIDB ]]; then
RNDSTR=$(sqlite3 "${XUIDB}" "SELECT value FROM settings WHERE key='webBasePath' LIMIT 1;" 2>&1)
if [[ -z "${PORT}" ]] || ! [[ "${PORT}" =~ ^-?[0-9]+$ ]]; then
PORT="2053"
NOPATH="#"
fi
if [ -z "$RNDSTR" ]; then
fi
if [ -z "$RNDSTR" ] || [ "$RNDSTR" == "/" ]; then
RNDSTR="/"
NOPATH="#"
fi
Expand Down

0 comments on commit 316d998

Please sign in to comment.