mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
refactor(docker): New mariadb_init service
Provides a single source of truth for mariadb database initialization. Previously, php-fpm and fastapi were racing against each other; while this wasn't an issue, it was very messy. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
2e3f69ab12
commit
0fd31b8d36
5 changed files with 64 additions and 40 deletions
|
@ -3,8 +3,6 @@ set -eou pipefail
|
|||
|
||||
MYSQL_DATA=/var/lib/mysql
|
||||
|
||||
[[ -z "$DB_HOST" ]] && DB_HOST="localhost"
|
||||
|
||||
mariadb-install-db --user=mysql --basedir=/usr --datadir=$MYSQL_DATA
|
||||
|
||||
# Start it up.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue