diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-07-04 06:52:56 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-07-04 06:52:56 +0000 |
| commit | 6f8df39b24932a8311cdd04a1173ddc15ff3bedc (patch) | |
| tree | 354842846170ef9ba0ad7f58739191195687129c /docker/common | |
| parent | f79c19f9c083fa34a1093a17031cd2e7ca37e34f (diff) | |
| parent | 11597cc2f46f6bd5fdda34e3d6897f6f11188679 (diff) | |
| download | kolla-6f8df39b24932a8311cdd04a1173ddc15ff3bedc.tar.gz kolla-6f8df39b24932a8311cdd04a1173ddc15ff3bedc.zip | |
Merge "Updated keystone for wsgi in config-external"
Diffstat (limited to 'docker/common')
| -rw-r--r-- | docker/common/keystone/config-external.sh | 6 | ||||
| -rwxr-xr-x | docker/common/keystone/start.sh | 12 |
2 files changed, 13 insertions, 5 deletions
diff --git a/docker/common/keystone/config-external.sh b/docker/common/keystone/config-external.sh index 76e4acfff..54df0f3a1 100644 --- a/docker/common/keystone/config-external.sh +++ b/docker/common/keystone/config-external.sh @@ -1,5 +1,11 @@ #!/bin/bash +if [[ -f /opt/kolla/keystone/wsgi-keystone.conf ]]; then + cp /opt/kolla/keystone/wsgi-keystone.conf /etc/httpd/conf.d/ + chown root:keystone /etc/httpd/conf.d/wsgi-keystone.conf + chmod 0644 /etc/httpd/conf.d/wsgi-keystone.conf +fi + if [[ -f /opt/kolla/keystone/keystone.conf ]]; then cp /opt/kolla/keystone/keystone.conf /etc/keystone/keystone.conf chown keystone: /etc/keystone/keystone.conf diff --git a/docker/common/keystone/start.sh b/docker/common/keystone/start.sh index 4dce4c757..a7b2462b3 100755 --- a/docker/common/keystone/start.sh +++ b/docker/common/keystone/start.sh @@ -2,17 +2,19 @@ set -o errexit -CMD="/usr/bin/keystone-all" -ARGS="" +CMD="/usr/sbin/httpd" +ARGS="-DFOREGROUND" -# loading common functions +# Loading common functions. source /opt/kolla/kolla-common.sh +# Config-internal script exec out of this function, it does not return here. set_configs -# Bootstrap and exit if BOOTSTRAP variable is set +# 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 - su -c "keystone-manage db_sync" keystone + su -s /bin/sh -c "keystone-manage db_sync" keystone exit 0 fi |
