Skip to content

Commit a586c28

Browse files
authored
Update 40-initialise-db
fix the mariadb.sys bug introduced since ls62.
1 parent db6d548 commit a586c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/etc/cont-init.d/40-initialise-db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
# set basic sql command
2424
tempSqlFile='/tmp/mysql-first-time.sql'
2525
cat > "$tempSqlFile" <<-EOSQL
26-
DELETE FROM mysql.user ;
26+
DELETE FROM mysql.user WHERE user <> 'mariadb.sys';
2727
EOSQL
2828

2929
# set what to display if no password set with variable MYSQL_ROOT_PASSWORD

0 commit comments

Comments
 (0)