From bc14e80b12aa612db950cb9b7412216e5569c00d Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Sun, 21 Jul 2024 05:00:20 -0700 Subject: [PATCH] Fix no password prompt. Fixes #2408 (#2409) --- setup/firstuser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/firstuser.sh b/setup/firstuser.sh index 91e53d9f..b6b1b3c8 100644 --- a/setup/firstuser.sh +++ b/setup/firstuser.sh @@ -48,7 +48,7 @@ if [ -z "$(management/cli.py user)" ]; then fi # Create the user's mail account. This will ask for a password if none was given above. - management/cli.py user add "$EMAIL_ADDR" "${EMAIL_PW:-}" + management/cli.py user add "$EMAIL_ADDR" ${EMAIL_PW:+"$EMAIL_PW"} # Make it an admin. hide_output management/cli.py user make-admin "$EMAIL_ADDR"