Check for /var/log/audit
The audit.log file may not be readable by the user running the copy_logs.sh script. Let's check that the directory exists and then copy the file. Change-Id: I25247dd8049b8ad4f055ca4e3d6e4b3dfc9ed97b
This commit is contained in:
parent
28163a6b31
commit
7ceff2c696
@ -180,8 +180,8 @@ if [ -f /var/log/qdrouterd/qdrouterd.log ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f /var/log/audit/audit.log ]; then
|
||||
sudo cp /var/log/audit/audit.log $LOG_DIR/audit.log.txt
|
||||
if [ -d /var/log/audit/ ]; then
|
||||
sudo cp /var/log/audit/audit.log $LOG_DIR/audit.log.txt || true
|
||||
fi
|
||||
|
||||
if [ -d /tmp/openstack/tempest ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user