diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-03-04 17:01:23 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-03-04 17:01:24 +0000 |
| commit | 82c426ce3a5dee1a6b5b9c59072912abd5ac437f (patch) | |
| tree | 04816ecdad43b95ca9423498abd92142813bf18d /docker | |
| parent | 2d22570a02660e3320341497d1daab783d7d1fd4 (diff) | |
| parent | ef24d9e597a12c3bdb23bd49357e4b38609a1e19 (diff) | |
| download | kolla-82c426ce3a5dee1a6b5b9c59072912abd5ac437f.tar.gz kolla-82c426ce3a5dee1a6b5b9c59072912abd5ac437f.zip | |
Merge "Set mongodb log file to shared volume by heka"
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/mongodb/extend_start.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/mongodb/extend_start.sh b/docker/mongodb/extend_start.sh index f00369ff0..8d8933f90 100644 --- a/docker/mongodb/extend_start.sh +++ b/docker/mongodb/extend_start.sh @@ -2,6 +2,14 @@ echo "run extended start" +if [[ ! -d "/var/log/kolla/mongodb" ]]; then + mkdir -p /var/log/kolla/mongodb +fi + +if [[ $(stat -c %a /var/log/kolla/mongodb) != "755" ]]; then + chmod 755 /var/log/kolla/mongodb +fi + # 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 |
