diff options
| author | Zuul <zuul@review.opendev.org> | 2020-02-20 18:28:51 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-02-20 18:28:51 +0000 |
| commit | 19dc5ef8e287de580ad21d70793391d161078541 (patch) | |
| tree | 9a2487bf084bb40bed7df8fcbbe7e1eaed00aead /docker/nova/nova-api | |
| parent | b86730a545584f2d387af26aea3cfd02d40be7de (diff) | |
| parent | 6ef631d229eb545246776c0618573daefc8f85bc (diff) | |
| download | kolla-19dc5ef8e287de580ad21d70793391d161078541.tar.gz kolla-19dc5ef8e287de580ad21d70793391d161078541.zip | |
Merge "Refactor Apache httpd setup" into stable/train
Diffstat (limited to 'docker/nova/nova-api')
| -rw-r--r-- | docker/nova/nova-api/extend_start.sh | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/docker/nova/nova-api/extend_start.sh b/docker/nova/nova-api/extend_start.sh index 815b62255..aec89f621 100644 --- a/docker/nova/nova-api/extend_start.sh +++ b/docker/nova/nova-api/extend_start.sh @@ -24,16 +24,4 @@ if [[ "${!KOLLA_OSM[@]}" ]]; then exit 0 fi -# Assume the service runs on top of Apache when user is root -if [[ "$(whoami)" == 'root' ]]; then - # NOTE(pbourke): httpd will not clean up after itself in some cases which - # results in the container not being able to restart. (bug #1489676, 1557036) - if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then - # Loading Apache2 ENV variables - . /etc/apache2/envvars - install -d /var/run/apache2/ - rm -rf /var/run/apache2/* - else - rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd* - fi -fi +. /usr/local/bin/kolla_httpd_setup |
