diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-02 21:25:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-02 21:25:19 +0000 |
| commit | 572e80e6d081ae1d42998b5a4cb3fcaa9b6b2a48 (patch) | |
| tree | f80002312009308cbbab3d52384b55ad63d72b48 /docker/mongodb/extend_start.sh | |
| parent | 0e5ca754ace90ac79d5197f0803a3d45f03a0e61 (diff) | |
| parent | 3ae00639440dd7d3ebfca847e369b475a95aca3d (diff) | |
| download | kolla-572e80e6d081ae1d42998b5a4cb3fcaa9b6b2a48.tar.gz kolla-572e80e6d081ae1d42998b5a4cb3fcaa9b6b2a48.zip | |
Merge "Add an ansible role for mongodb"
Diffstat (limited to 'docker/mongodb/extend_start.sh')
| -rw-r--r-- | docker/mongodb/extend_start.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/mongodb/extend_start.sh b/docker/mongodb/extend_start.sh new file mode 100644 index 000000000..f00369ff0 --- /dev/null +++ b/docker/mongodb/extend_start.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +echo "run extended start" + +# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases +# of the KOLLA_BOOTSTRAP variable being set, including empty. +if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then + sudo chown mongodb: /var/lib/mongodb/ + exit 0 +fi |
