shred sqlCmd instead of removing
This commit is contained in:
parent
e0818d083e
commit
a3d71e3a0a
2
.vscode/numbered-bookmarks.json
vendored
2
.vscode/numbered-bookmarks.json
vendored
@ -4,7 +4,7 @@
|
||||
"fsPath": "$ROOTPATH$/entrypoint.sh",
|
||||
"bookmarks": [
|
||||
-1,
|
||||
71,
|
||||
-1,
|
||||
79,
|
||||
-1,
|
||||
-1,
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user