Skip to content

Commit 0a57848

Browse files
committed
Copy pasted something from the internet once and it has a bug
lol
1 parent fe5c7d7 commit 0a57848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/dev_command/setup-mysql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mysql-setup() {
44
local host=$1;
55

66
if [ -z "${MYSQL_ROOT_PASSWORD}" ]; then
7-
export MYSQL_ROOT_PASSWORD="`< /dev/urandom LC_CTYPE=C tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;`";
7+
export MYSQL_ROOT_PASSWORD="`< /dev/urandom LC_CTYPE=C tr -dc _A-Z-a-z-0-9 | head -c32;echo;`";
88
echo 'MYSQL_ROOT_PASSWORD='${MYSQL_ROOT_PASSWORD} >> ${DEV_WORKPATH}/.env;
99
echo 'Created a random root password for MySQL stored in '${DEV_WORKPATH}'/.env, to login as root use `dev myroot`';
1010
fi;

0 commit comments

Comments
 (0)