mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-29 22:47:14 +00:00
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:
@@ -467,12 +467,12 @@ check_config() {
|
|||||||
start 0 > /dev/null 2>&1
|
start 0 > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
LOGE "IP certificate setup failed."
|
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
|
start 0 > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "${yellow}Access URL: http://${server_ip}:${existing_port}${existing_webBasePath}${plain}"
|
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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -3069,7 +3069,7 @@ migrate_to_postgres() {
|
|||||||
if check_status; then
|
if check_status; then
|
||||||
LOGI "Migration complete. The panel is now running on PostgreSQL."
|
LOGI "Migration complete. The panel is now running on PostgreSQL."
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user