From dee7397a8f62f246edab2c8a9405d19771399ab8 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 12 May 2014 11:08:10 +1000 Subject: [PATCH] Modify horizon log copy for Fedora Fedora keeps http logs in a /var/log/httpd Change-Id: Ie7605559f165ea5e86d5e779914e32fdee6956e4 --- functions.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 4e4e1f76..c0995cb6 100644 --- a/functions.sh +++ b/functions.sh @@ -414,7 +414,12 @@ function cleanup_host { > $BASE/logs/syslog.txt fi - sudo cp /var/log/apache2/horizon_error.log $BASE/logs/horizon_error.log + # horizon + if is_ubuntu; then + sudo cp /var/log/apache2/horizon_error.log $BASE/logs/horizon_error.log + elif is_fedora; then + sudo cp /var/log/httpd/horizon_error.log $BASE/logs/horizon_error.log + fi # rabbitmq logs if [ -d /var/log/rabbitmq ]; then