fix: installer banner version and admin password display

- Fix version banner showing 0.1.0 instead of 0.2.0
- Fix admin password line printing "<auto-generated>true" when
  GENERATED_PASS=true due to broken parameter expansion — replace
  with explicit if/else
This commit is contained in:
NixReaper
2026-04-05 11:37:53 -05:00
parent 92d08d7b79
commit aaa6d6ce46
+6 -2
View File
@@ -28,7 +28,7 @@ cat <<'EOF'
Open-Source Web Hosting Control Panel
EOF
echo -e "${RESET}"
echo -e " Version : ${BOLD}0.1.0${RESET}"
echo -e " Version : ${BOLD}0.2.0${RESET}"
echo -e " GitHub : ${BOLD}https://github.com/NixReaper/nixpanel-server${RESET}"
echo -e " NixServer: ${BOLD}https://<your-ip>:2087${RESET}"
echo -e " NixClient: ${BOLD}https://<your-ip>:2083${RESET}"
@@ -121,7 +121,11 @@ echo -e "${BOLD}Installation summary:${RESET}"
echo " Install directory : $INSTALL_DIR"
echo " Admin username : $ADMIN_USER"
echo " Admin email : $ADMIN_EMAIL"
echo " Admin password : ${GENERATED_PASS:+<auto-generated, shown at end>}${GENERATED_PASS:-$ADMIN_PASS}"
if [[ "$GENERATED_PASS" == "true" ]]; then
echo " Admin password : <auto-generated, shown at end>"
else
echo " Admin password : $ADMIN_PASS"
fi
echo ""
read -r -p "Continue? [Y/n] " CONFIRM
CONFIRM="${CONFIRM:-Y}"