File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " create-t3-app " : patch
3
+ ---
4
+
5
+ fix: fix password substitution in start-database scripts
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if [ "$DB_PASSWORD" == "password" ]; then
36
36
exit 1
37
37
fi
38
38
DB_PASSWORD=$( openssl rand -base64 12)
39
- sed -i -e " s/ :password@/ :$DB_PASSWORD @/ " .env
39
+ sed -i -e " s# :password@# :$DB_PASSWORD @# " .env
40
40
fi
41
41
42
42
docker run --name $DB_CONTAINER_NAME -e MYSQL_ROOT_PASSWORD=$DB_PASSWORD -e MYSQL_DATABASE=project1 -d -p 3306:3306 docker.io/mysql
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if [ "$DB_PASSWORD" = "password" ]; then
36
36
exit 1
37
37
fi
38
38
DB_PASSWORD=$( openssl rand -base64 12)
39
- sed -i -e " s/ :password@/ :$DB_PASSWORD @/ " .env
39
+ sed -i -e " s# :password@# :$DB_PASSWORD @# " .env
40
40
fi
41
41
42
42
docker run --name $DB_CONTAINER_NAME -e POSTGRES_PASSWORD=$DB_PASSWORD -e POSTGRES_DB=project1 -d -p 5432:5432 docker.io/postgres
You can’t perform that action at this time.
0 commit comments