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
This commit is contained in:
lxk955
2026-07-05 05:09:56 +08:00
committed by GitHub
parent 5c725df702
commit e11e587c60
+3 -3
View File
@@ -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
}