|
@@ -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() {
|