mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 07:18:22 +08:00
15 lines
366 B
Bash
Executable File
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 "$@"
|