mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +00:00
post_fail_hook: upload PostgreSQL init log if it exists
Why...why...WHY is this not in /var/log. Sheesh. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
09cd628f46
commit
527cb63152
@ -110,6 +110,11 @@ sub post_fail_hook {
|
||||
upload_logs "/var/named/data/named.run";
|
||||
}
|
||||
|
||||
# update PostgreSQL initialization log (for database_server test)
|
||||
unless (script_run 'test -f /var/lib/pgsql/initdb_postgresql.log') {
|
||||
upload_logs "/var/lib/pgsql/initdb_postgresql.log";
|
||||
}
|
||||
|
||||
# Upload /var/log
|
||||
# lastlog can mess up tar sometimes and it's not much use
|
||||
unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {
|
||||
|
Loading…
Reference in New Issue
Block a user