File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ if [ "$DB_PASSWORD" == "password" ]; then
35
35
echo " Please set a password in the .env file and try again"
36
36
exit 1
37
37
fi
38
- DB_PASSWORD=$( openssl rand -base64 12)
38
+ # Generate a random URL-safe password
39
+ DB_PASSWORD=$( openssl rand -base64 12 | tr ' +/' ' -_' )
39
40
sed -i -e " s#:password@#:$DB_PASSWORD @#" .env
40
41
fi
41
42
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ if [ "$DB_PASSWORD" = "password" ]; then
35
35
echo " Please set a password in the .env file and try again"
36
36
exit 1
37
37
fi
38
- DB_PASSWORD=$( openssl rand -base64 12)
38
+ # Generate a random URL-safe password
39
+ DB_PASSWORD=$( openssl rand -base64 12 | tr ' +/' ' -_' )
39
40
sed -i -e " s#:password@#:$DB_PASSWORD @#" .env
40
41
fi
41
42
You can’t perform that action at this time.
0 commit comments