From 775da0aef76b4496f9c207f3d6519bf8df108c62 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Wed, 25 Jun 2014 23:30:50 -0700 Subject: [PATCH] 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 --- functions.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/functions.sh b/functions.sh index 0f8e160d..db89ddfc 100644 --- a/functions.sh +++ b/functions.sh @@ -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