Merge "copy_logs: use journalctl only if present"

This commit is contained in:
Jenkins 2016-06-10 15:37:37 +00:00 committed by Gerrit Code Review
commit df720b52e0

View File

@ -62,7 +62,9 @@ done
if uses_debs; then
sudo cp /var/log/kern.log $LOG_DIR/kern_log.txt
fi
sudo journalctl --no-pager > $LOG_DIR/syslog.txt
if which journalctl &> /dev/null; then
sudo journalctl --no-pager > $LOG_DIR/syslog.txt
fi
# rabbitmq logs
if [ -d /var/log/rabbitmq ]; then