Merge pull request #7 from bitnami/chown-always

Chown always
This commit is contained in:
Miguel Ángel Martínez Triviño
2015-06-19 10:51:18 -07:00
2 changed files with 6 additions and 3 deletions

View File

@@ -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 "$@"

View File

@@ -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
}