symlink /bitnami/mongodb/data -> /opt/bitnami/mongodb/data/db

This commit is contained in:
Sameer Naik
2016-03-29 23:12:06 +05:30
parent efffc6054c
commit 9c397d6f7d
3 changed files with 3 additions and 4 deletions

View File

@@ -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 \