mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 23:38:32 +08:00
added initialize-configs init script to populate the conf/ volume
`mysql` client fails when it is started from the docker run command line due to missing `my.cnf`. To workaround this issue, we populate the `conf/` volume from a `cont-init.d/01-initialize-configs` scripts.
This commit is contained in:
7
bitnami/mariadb/rootfs/etc/cont-init.d/01-initialize-configs
Executable file
7
bitnami/mariadb/rootfs/etc/cont-init.d/01-initialize-configs
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
set -e
|
||||
source $BITNAMI_PREFIX/bitnami-utils.sh
|
||||
|
||||
if [ ! "$(ls -A $BITNAMI_APP_VOL_PREFIX/conf)" ]; then
|
||||
generate_conf_files
|
||||
fi
|
||||
@@ -4,10 +4,6 @@ source $BITNAMI_PREFIX/bitnami-utils.sh
|
||||
|
||||
print_welcome_page
|
||||
|
||||
if [ ! "$(ls -A $BITNAMI_APP_VOL_PREFIX/conf)" ]; then
|
||||
generate_conf_files
|
||||
fi
|
||||
|
||||
mkdir -p $BITNAMI_APP_DIR/tmp
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER $BITNAMI_APP_DIR/tmp || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user