Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <mc.sanaei@gmail.com>2023-02-20 20:29:55 +0300
committerMHSanaei <mc.sanaei@gmail.com>2023-02-20 20:29:55 +0300
commitadd853fadaebeed99d2eadcf6ec2fa9396bf6ccd (patch)
treed55598f4ef7d0b812ff9a721a72aad7b2a298ded /x-ui.sh
parentd4c8b926d3a35e8b632ddd290599d3b344e13fc3 (diff)
update pack 3
user pass will be generated randomly upgrade all dependencies move add client buttom
Diffstat (limited to 'x-ui.sh')
-rw-r--r--x-ui.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/x-ui.sh b/x-ui.sh
index cb124599..8fdde3b0 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -367,7 +367,7 @@ show_status() {
check_status
case $? in
0)
- echo -e "Panel state: ${green}Runing${plain}"
+ echo -e "Panel state: ${green}Running${plain}"
show_enable_status
;;
1)
@@ -402,7 +402,7 @@ check_xray_status() {
show_xray_status() {
check_xray_status
if [[ $? == 0 ]]; then
- echo -e "xray state: ${green}Runing${plain}"
+ echo -e "xray state: ${green}Running${plain}"
else
echo -e "xray state: ${red}Not Running${plain}"
fi
@@ -449,11 +449,14 @@ install_acme() {
#method for standalone mode
ssl_cert_issue_standalone() {
- #install acme first
- install_acme
- if [ $? -ne 0 ]; then
- LOGE "install acme failed,please check logs"
- exit 1
+ #check for acme.sh first
+ if ! command -v ~/.acme.sh/acme.sh &>/dev/null; then
+ echo "acme.sh could not be found. we will install it"
+ install_acme
+ if [ $? -ne 0 ]; then
+ LOGE "install acme failed, please check logs"
+ exit 1
+ fi
fi
#install socat second
if [[ x"${release}" == x"centos" ]]; then
@@ -636,7 +639,7 @@ show_usage() {
show_menu() {
echo -e "
- ${green}3x-ui Panel Management Script${plain}
+ ${green}3X-ui Panel Management Script${plain}
${green}0.${plain} Exit Script
————————————————
${green}1.${plain} Install x-ui