From ac6028b8715df4023d788ad4fd3265607cde71fb Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 7 Oct 2025 02:09:22 +0200 Subject: [PATCH] fix: correct admin credential msg (#10521) * fix installers final message * adjust text --- contrib/packager.io/functions.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/contrib/packager.io/functions.sh b/contrib/packager.io/functions.sh index c784ef34c4..d59a88e4ef 100755 --- a/contrib/packager.io/functions.sh +++ b/contrib/packager.io/functions.sh @@ -405,11 +405,16 @@ function final_message() { echo -e "####################################################################################" echo -e "This InvenTree install uses nginx, the settings for the webserver can be found in" echo -e "${SETUP_NGINX_FILE}" - echo -e "Try opening InvenTree with either\nhttp://localhost/ or http://${INVENTREE_IP}/\n" - echo -e "Admin user data:" - echo -e " Email: ${INVENTREE_ADMIN_EMAIL}" - echo -e " Username: ${INVENTREE_ADMIN_USER}" - echo -e " Password: ${INVENTREE_ADMIN_PASSWORD}" + echo -e "Try opening InvenTree with any of \n${INVENTREE_SITE_URL} , http://localhost/ or http://${INVENTREE_IP}/ \n" + # Print admin user data only if set + if ["${INVENTREE_ADMIN_USER}" ]; then + echo -e "Admin user data:" + echo -e " Email: ${INVENTREE_ADMIN_EMAIL}" + echo -e " Username: ${INVENTREE_ADMIN_USER}" + echo -e " Password: ${INVENTREE_ADMIN_PASSWORD}" + else + echo -e "No admin set during this operation - depending on the deployment method a admin user might have been created with an initial password saved in `${SETUP_ADMIN_PASSWORD_FILE}`" + fi echo -e "####################################################################################" }