mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 23:38:32 +08:00
@@ -34,7 +34,10 @@ if [ "$1" = 'mysqld.bin' ]; then
|
||||
print_container_already_initialized $BITNAMI_APP_NAME
|
||||
fi
|
||||
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER $BITNAMI_APP_DIR/logs || true
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER \
|
||||
$BITNAMI_APP_VOL_PREFIX/conf/ \
|
||||
$BITNAMI_APP_VOL_PREFIX/logs/ \
|
||||
$BITNAMI_APP_VOL_PREFIX/data/ || true
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
||||
@@ -165,7 +165,7 @@ create_full_container_mounted(){
|
||||
|
||||
@test "Data gets generated in conf and data if bind mounted in the host" {
|
||||
create_full_container_mounted
|
||||
run ls -l $HOST_VOL_PREFIX/conf/my.cnf $HOST_VOL_PREFIX/logs/mysqld.log
|
||||
run docker run -v $HOST_VOL_PREFIX:$HOST_VOL_PREFIX --rm bitnami/mariadb ls -l $HOST_VOL_PREFIX/conf/my.cnf $HOST_VOL_PREFIX/logs/mysqld.log
|
||||
[ $status = 0 ]
|
||||
cleanup_volumes_content
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user