Modify horizon log copy for Fedora

Fedora keeps http logs in a /var/log/httpd

Change-Id: Ie7605559f165ea5e86d5e779914e32fdee6956e4
This commit is contained in:
Ian Wienand
2014-05-12 11:08:10 +10:00
parent 26f527d593
commit dee7397a8f

View File

@@ -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