shred sqlCmd instead of removing

This commit is contained in:
Asif Bacchus 2020-11-27 02:48:39 -07:00
parent e0818d083e
commit a3d71e3a0a
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"fsPath": "$ROOTPATH$/entrypoint.sh",
"bookmarks": [
-1,
71,
-1,
79,
-1,
-1,

View File

@ -69,7 +69,7 @@ if [ -z "$(ls -A /var/lib/mysql/ 2> /dev/null)" ]; then
if (! mysqld --user=mysql --bootstrap --verbose=0 --skip-name-resolve --skip-networking=0 < "$sqlCmd"); then
exit 1
fi
#rm -f "$sqlCmd"
shred -u "$sqlCmd"
else
# files exist, ignore the request to create a database
printf "DB-CREATE: NOT creating %s\n" "$MYSQL_DATABASE"