From e11e587c6062318be151572006fa2ba31b571dc6 Mon Sep 17 00:00:00 2001 From: lxk955 <164191365+lxk955@users.noreply.github.com> Date: Sun, 5 Jul 2026 05:09:56 +0800 Subject: [PATCH] fix(script): correct hardcoded menu option numbers in x-ui.sh (#5787) * fix(script): correct hardcoded menu option numbers in x-ui.sh The error messages referenced option 19 for SSL Certificate Management and option 16 for Logs Management, but the actual positions in show_menu are 20 and 17 respectively. * Update x-ui.sh --- x-ui.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-ui.sh b/x-ui.sh index 34b9c439a..751d6a6af 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -467,12 +467,12 @@ check_config() { start 0 > /dev/null 2>&1 else LOGE "IP certificate setup failed." - echo -e "${yellow}You can try again via option 19 (SSL Certificate Management).${plain}" + echo -e "${yellow}You can try again via main menu option 20 (SSL Certificate Management).${plain}" start 0 > /dev/null 2>&1 fi else echo -e "${yellow}Access URL: http://${server_ip}:${existing_port}${existing_webBasePath}${plain}" - echo -e "${yellow}For security, please configure SSL certificate using option 19 (SSL Certificate Management)${plain}" + echo -e "${yellow}For security, please configure SSL certificate using main menu option 20 (SSL Certificate Management)${plain}" fi fi } @@ -3069,7 +3069,7 @@ migrate_to_postgres() { if check_status; then LOGI "Migration complete. The panel is now running on PostgreSQL." else - LOGE "Panel did not come up. Check logs (option 16). Your SQLite data is left intact." + LOGE "Panel did not come up. Check logs (main menu option 17). Your SQLite data is left intact." fi }