Skip to content

Commit

Permalink
fix: prevent start-database.sh from creating .env-e, fixes t3-oss#2060
Browse files Browse the repository at this point in the history
  • Loading branch information
maieutiquer committed Feb 22, 2025
1 parent f50f3c5 commit cd0f89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/template/extras/start-database/mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [ "$DB_PASSWORD" == "password" ]; then
fi
# Generate a random URL-safe password
DB_PASSWORD=$(openssl rand -base64 12 | tr '+/' '-_')
sed -i -e "s#:password@#:$DB_PASSWORD@#" .env
sed -i '' "s#:password@#:$DB_PASSWORD@#" .env
fi

docker run -d \
Expand Down
2 changes: 1 addition & 1 deletion cli/template/extras/start-database/postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [ "$DB_PASSWORD" = "password" ]; then
fi
# Generate a random URL-safe password
DB_PASSWORD=$(openssl rand -base64 12 | tr '+/' '-_')
sed -i -e "s#:password@#:$DB_PASSWORD@#" .env
sed -i '' "s#:password@#:$DB_PASSWORD@#" .env
fi

docker run -d \
Expand Down

0 comments on commit cd0f89d

Please sign in to comment.