Skip to content

Commit f7cd7ce

Browse files
committed
avoid printing passwords to the MySQL container stdout
1 parent e7841f4 commit f7cd7ce

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

build/ps-entrypoint.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ file_env() {
4242
fi
4343
export "$var"="$val"
4444
unset "$fileVar"
45-
set -o xtrace
4645
}
4746

4847
# usage: process_init_file FILENAME MYSQLCOMMAND...
@@ -294,7 +293,6 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
294293
MYSQL_ROOT_PASSWORD="$(pwmake 128)"
295294
echo "GENERATED ROOT PASSWORD: $MYSQL_ROOT_PASSWORD"
296295
fi
297-
set -x
298296

299297
rootCreate=
300298
# default root to listen for connections from anywhere
@@ -366,7 +364,6 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
366364
FLUSH PRIVILEGES ;
367365
EOSQL
368366

369-
{ set +x; } 2>/dev/null
370367
if [ -n "$MYSQL_ROOT_PASSWORD" ]; then
371368
mysql+=(-p"${MYSQL_ROOT_PASSWORD}")
372369
fi

0 commit comments

Comments
 (0)