diff options
| author | MHSanaei <mc.sanaei@gmail.com> | 2023-02-20 20:29:55 +0300 |
|---|---|---|
| committer | MHSanaei <mc.sanaei@gmail.com> | 2023-02-20 20:29:55 +0300 |
| commit | add853fadaebeed99d2eadcf6ec2fa9396bf6ccd (patch) | |
| tree | d55598f4ef7d0b812ff9a721a72aad7b2a298ded /x-ui.sh | |
| parent | d4c8b926d3a35e8b632ddd290599d3b344e13fc3 (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.sh | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -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 |
