mirror of
https://github.com/bitnami/containers.git
synced 2026-03-20 14:58:20 +08:00
Check for existence of data/mysql directory for database initialization
Filesystems, eg. ext4, mounted at `/bitnami/mariadb/data/` will contain the `lost+found` directory causing the current database initialization check to PASS. Fixes #1
This commit is contained in:
@@ -19,7 +19,7 @@ if [ "$1" = 'mysqld.bin' ]; then
|
||||
mkdir -p $BITNAMI_APP_DIR/tmp
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER $BITNAMI_APP_DIR/tmp || true
|
||||
|
||||
if [ ! "$(ls -A $BITNAMI_APP_VOL_PREFIX/data)" ]; then
|
||||
if [ ! -d $BITNAMI_APP_VOL_PREFIX/data/mysql ]; then
|
||||
|
||||
set -- "$@" --init-file=/tmp/init_mysql.sql
|
||||
|
||||
|
||||
Reference in New Issue
Block a user