Files
containers/bitnami/mariadb/rootfs/app-entrypoint.sh
Sameer Naik 1c3f150987 updated to mariadb-10.1.12-0
Notable Changes:
 - root password is optional
2016-04-07 17:03:55 +05:30

15 lines
366 B
Bash
Executable File

#!/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 \
${MARIADB_PASSWORD:+--password $MARIADB_PASSWORD}
fi
fi
exec /entrypoint.sh "$@"