From aaa6d6ce468bd6d057cf7c67526e47dda033b5de Mon Sep 17 00:00:00 2001 From: NixReaper Date: Sun, 5 Apr 2026 11:37:53 -0500 Subject: [PATCH] fix: installer banner version and admin password display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix version banner showing 0.1.0 instead of 0.2.0 - Fix admin password line printing "true" when GENERATED_PASS=true due to broken parameter expansion — replace with explicit if/else --- scripts/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index ecb09ea..e4e7273 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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://:2087${RESET}" echo -e " NixClient: ${BOLD}https://: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:+}${GENERATED_PASS:-$ADMIN_PASS}" +if [[ "$GENERATED_PASS" == "true" ]]; then + echo " Admin password : " +else + echo " Admin password : $ADMIN_PASS" +fi echo "" read -r -p "Continue? [Y/n] " CONFIRM CONFIRM="${CONFIRM:-Y}"