Capture apache configuration files

Capture the apache vhost files in the output from ds-g. Since we
have more than just horizon's configuration, it is useful to know
how the Apache server is running / errors in the vhost when a
check or gate job finishes.

Change-Id: I1e5a7b5086566c0cbd18dee92c5062773ce8a8e5
This commit is contained in:
Morgan Fainberg
2014-06-25 23:30:50 -07:00
parent e5a09da30c
commit 775da0aef7

View File

@@ -491,6 +491,18 @@ function cleanup_host {
fi
done
# Archive Apache config files
sudo mkdir $BASE/logs/apache_config
if is_ubuntu; then
if [[ -d /etc/apache2/sites-enabled ]]; then
sudo cp /etc/apache2/sites-enabled/* $BASE/logs/apache_config
fi
elif is_fedora; then
if [[ -d /etc/apache2/httpd/conf.d ]]; then
sudo cp /etc/httpd/conf.d/* $BASE/logs/apache_config
fi
fi
# copy devstack log files
if [ -d $BASE/old ]; then
sudo mkdir -p $BASE/logs/old $BASE/logs/new $BASE/logs/grenade