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:
-rw-r--r--x-ui.sh40
1 files changed, 20 insertions, 20 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 12be56dc..f69df741 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -2,6 +2,7 @@
red='\033[0;31m'
green='\033[0;32m'
+blue='\033[0;34m'
yellow='\033[0;33m'
plain='\033[0m'
@@ -748,8 +749,7 @@ install_firewall() {
# Enable the firewall
ufw --force enable
- fi
- done
+ fi
}
open_ports() {
@@ -1681,24 +1681,24 @@ SSH_port_forwarding() {
}
show_usage() {
- echo "x-ui control menu usages: "
- echo "------------------------------------------"
- echo -e "SUBCOMMANDS:"
- echo -e "x-ui - Admin Management Script"
- echo -e "x-ui start - Start"
- echo -e "x-ui stop - Stop"
- echo -e "x-ui restart - Restart"
- echo -e "x-ui status - Current Status"
- echo -e "x-ui settings - Current Settings"
- echo -e "x-ui enable - Enable Autostart on OS Startup"
- echo -e "x-ui disable - Disable Autostart on OS Startup"
- echo -e "x-ui log - Check logs"
- echo -e "x-ui banlog - Check Fail2ban ban logs"
- echo -e "x-ui update - Update"
- echo -e "x-ui custom - custom version"
- echo -e "x-ui install - Install"
- echo -e "x-ui uninstall - Uninstall"
- echo "------------------------------------------"
+ echo -e "┌───────────────────────────────────────────────────────┐
+│ ${blue}x-ui control menu usages (subcommands):${plain} │
+│ │
+│ ${blue}x-ui${plain} - Admin Management Script │
+│ ${blue}x-ui start${plain} - Start │
+│ ${blue}x-ui stop${plain} - Stop │
+│ ${blue}x-ui restart${plain} - Restart │
+│ ${blue}x-ui status${plain} - Current Status │
+│ ${blue}x-ui settings${plain} - Current Settings │
+│ ${blue}x-ui enable${plain} - Enable Autostart on OS Startup │
+│ ${blue}x-ui disable${plain} - Disable Autostart on OS Startup │
+│ ${blue}x-ui log${plain} - Check logs │
+│ ${blue}x-ui banlog${plain} - Check Fail2ban ban logs │
+│ ${blue}x-ui update${plain} - Update │
+│ ${blue}x-ui legacy${plain} - legacy version │
+│ ${blue}x-ui install${plain} - Install │
+│ ${blue}x-ui uninstall${plain} - Uninstall │
+└───────────────────────────────────────────────────────┘"
}
show_menu() {