forked from docker/mariadb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It allows a user to add custom SQL commands to the file that is executed during database initialization. Useful e.g. to provide some initial content. Also fixed hardwired directory in my.cnf. And a minor start.sh code cleanup.
- Loading branch information
Showing
3 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "Fixing Permissions" | ||
| chown -R mysql:mysql $MYSQL_DATADIR | ||
| /opt/bin/fix-permissions.sh $MYSQL_DATADIR | ||
| /opt/bin/fix-permissions.sh /var/log/mariadb/ | ||
| /opt/bin/fix-permissions.sh /var/run/ | ||
| echo "Done Fixing Permissions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters