Skip to content

Commit ad811cd

Browse files
authored
Fix permissions on tmp files
1 parent 14b7479 commit ad811cd

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,6 @@ fi
2323

2424
# set basic sql command
2525
tempSqlFile=$(mktemp)
26-
chown -R abc:abc "${tempSqlFile}"
2726
cat > "${tempSqlFile}" <<-EOSQL
2827
DELETE FROM mysql.user WHERE user <> 'mariadb.sys';
2928
EOSQL
@@ -74,6 +73,7 @@ GRANT ALL ON *.* TO 'root'@'%' WITH GRANT OPTION ;
7473
DROP DATABASE IF EXISTS test ;
7574
$MYSQL_DB_SETUP
7675
EONEWSQL
76+
chown -R abc:abc "${tempSqlFile}"
7777
echo "Setting Up Initial Databases"
7878

7979
# add all sql from a user defined directory on first init

0 commit comments

Comments
 (0)