mirror of
https://github.com/bitnami/containers.git
synced 2026-04-02 15:27:45 +08:00
symlink /bitnami/mongodb/data -> /opt/bitnami/mongodb/data/db
This commit is contained in:
@@ -4,8 +4,7 @@ set -e
|
||||
if [[ "$1" == "harpoon" && "$2" == "start" ]]; then
|
||||
status=`harpoon inspect $BITNAMI_APP_NAME`
|
||||
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
|
||||
# HACK: harpoon initialize should create the db directory
|
||||
mkdir -p $BITNAMI_APP_DIR/data/db
|
||||
# fix ownership of `data/db` volume mount point
|
||||
chown -R $BITNAMI_APP_USER:root $BITNAMI_APP_DIR/data/db
|
||||
|
||||
harpoon initialize $BITNAMI_APP_NAME \
|
||||
|
||||
Reference in New Issue
Block a user