Temporarily copy unbound.log in cleanup_host

In order to try and track down pervasive name resolution failures,
unbound has been configured to log errors to /var/log/unbound.log
recent images. Collect these along with the usual auxiliary logs so
we will be able to analyze them for clues following job completion.

Change-Id: Id9de9ac63523e91620c3db2292bbc753ce48c387
This commit is contained in:
Jeremy Stanley 2017-06-19 14:19:05 +00:00
parent 9d61c91532
commit ec35f37047
1 changed files with 3 additions and 0 deletions

View File

@ -879,6 +879,9 @@ function cleanup_host {
sudo cp -r /var/core $BASE/logs/
fi
# unbound
save_file /var/log/unbound.log
# Make sure the current user can read all the logs and configs
sudo chown -RL $USER:$USER $BASE/logs/
# (note X not x ... execute/search only if the file is a directory