56838a347e
1. Add the missing packages in the aodh image packages: pymongo 2. Add aodh sudoer 3. aodh sync db command is error sync db command is: aodh-dbsync Reference link: http://docs.openstack.org/developer/aodh/install/manual.html 4. Add aodh-api running as a mod_wsgi Reference link: http://docs.openstack.org/developer/aodh/install/mod_wsgi.html Closes-Bug: #1609000 Change-Id: Ia3706794059231fa08444e32eb034d64fbfa5182
19 lines
587 B
Bash
19 lines
587 B
Bash
#!/bin/bash
|
|
|
|
# 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
|
|
rm -rf /var/run/apache2/*
|
|
else
|
|
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
|
|
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
|
|
aodh-dbsync
|
|
exit 0
|
|
fi
|