From 46a4e2d144da8b184bf39444b19e0b1bd00bab2b Mon Sep 17 00:00:00 2001 From: Krishan Goyal <131463659+KrishanGoyal1@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:24:54 +0530 Subject: [PATCH] fix: changed error message for default password in db (#1940) Co-authored-by: Krishan Goyal Co-authored-by: Julius Marminge --- .changeset/wet-vans-rest.md | 5 +++++ cli/template/extras/start-database/mysql.sh | 2 +- cli/template/extras/start-database/postgres.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/wet-vans-rest.md diff --git a/.changeset/wet-vans-rest.md b/.changeset/wet-vans-rest.md new file mode 100644 index 0000000000..506ada4112 --- /dev/null +++ b/.changeset/wet-vans-rest.md @@ -0,0 +1,5 @@ +--- +"create-t3-app": patch +--- + +changed default password error message for `start-database` script diff --git a/cli/template/extras/start-database/mysql.sh b/cli/template/extras/start-database/mysql.sh index 2579f259ea..268df5cc53 100755 --- a/cli/template/extras/start-database/mysql.sh +++ b/cli/template/extras/start-database/mysql.sh @@ -38,7 +38,7 @@ if [ "$DB_PASSWORD" == "password" ]; then echo "You are using the default database password" read -p "Should we generate a random password for you? [y/N]: " -r REPLY if ! [[ $REPLY =~ ^[Yy]$ ]]; then - echo "Please set a password in the .env file and try again" + echo "Please change the default password in the .env file and try again" exit 1 fi # Generate a random URL-safe password diff --git a/cli/template/extras/start-database/postgres.sh b/cli/template/extras/start-database/postgres.sh index 164e9889ac..11fb2042ad 100755 --- a/cli/template/extras/start-database/postgres.sh +++ b/cli/template/extras/start-database/postgres.sh @@ -38,7 +38,7 @@ if [ "$DB_PASSWORD" = "password" ]; then echo "You are using the default database password" read -p "Should we generate a random password for you? [y/N]: " -r REPLY if ! [[ $REPLY =~ ^[Yy]$ ]]; then - echo "Please set a password in the .env file and try again" + echo "Please change the default password in the .env file and try again" exit 1 fi # Generate a random URL-safe password