mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 15:29:05 +08:00
updated to mariadb-10.1.12-0
Notable Changes: - root password is optional
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
chown $BITNAMI_APP_USER: $BITNAMI_APP_VOL_PREFIX || true
|
||||
|
||||
if [[ "$1" == "harpoon" && "$2" == "start" ]]; then
|
||||
status=`harpoon inspect $BITNAMI_APP_NAME`
|
||||
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
|
||||
harpoon initialize $BITNAMI_APP_NAME --password ${MARIADB_PASSWORD:-password}
|
||||
|
||||
## disable DNS lookups
|
||||
# this should happen in harpoon initialize, controlled by a argument, eg. --skip-name-resolve
|
||||
(
|
||||
echo ""
|
||||
echo "[mysqld]"
|
||||
echo "skip-name-resolve"
|
||||
) >> $BITNAMI_APP_DIR/conf/my.cnf
|
||||
harpoon initialize $BITNAMI_APP_NAME \
|
||||
${MARIADB_PASSWORD:+--password $MARIADB_PASSWORD}
|
||||
fi
|
||||
|
||||
chown -R $BITNAMI_APP_USER: $BITNAMI_APP_DIR/data || true
|
||||
fi
|
||||
|
||||
exec /entrypoint.sh "$@"
|
||||
|
||||
Reference in New Issue
Block a user