diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-03-23 19:39:53 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-03-23 19:39:54 +0000 |
| commit | 3a7445677fd9965a1bf95f9aef5d52b93d3c7ddd (patch) | |
| tree | 5c4b1f6203ff88a1800fed9992b1b9b86cb15d23 /docker | |
| parent | 721229297eae59862c44496e3eb359ea805d5541 (diff) | |
| parent | 8d96d639c8918e52c6d4d0a0bdeba299ea12bb86 (diff) | |
| download | kolla-3a7445677fd9965a1bf95f9aef5d52b93d3c7ddd.tar.gz kolla-3a7445677fd9965a1bf95f9aef5d52b93d3c7ddd.zip | |
Merge "Add creation of new log folder for Horizon"
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/horizon/extend_start.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh index 299e9379c..d9c5fafd6 100644 --- a/docker/horizon/extend_start.sh +++ b/docker/horizon/extend_start.sh @@ -22,3 +22,12 @@ if [[ ! -f ${MD5SUM_TXT_PATH} || $(md5sum -c --status ${MD5SUM_TXT_PATH};echo $? /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compress --force fi fi + +# NOTE(sbezverk) since Horizon is now storing logs in its own location, /var/log/horizon +# needs to be created if it does not exist +if [[ ! -d "/var/log/kolla/horizon" ]]; then + mkdir -p /var/log/kolla/horizon +fi +if [[ $(stat -c %a /var/log/kolla/horizon) != "755" ]]; then + chmod 755 /var/log/kolla/horizon +fi |
