From e23a8be01334e573ec40652efd9458414b9c6ebc Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 12 Jan 2016 14:51:24 +0100 Subject: [PATCH] SelfTest: Datenbanknamen gefixt; Client-Namen auch mit ausgeben --- SL/BackgroundJob/SelfTest.pm | 3 ++- templates/mail/self_test/status_mail.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/BackgroundJob/SelfTest.pm b/SL/BackgroundJob/SelfTest.pm index 6137ced42..514562590 100644 --- a/SL/BackgroundJob/SelfTest.pm +++ b/SL/BackgroundJob/SelfTest.pm @@ -153,7 +153,8 @@ sub _prepare_report { my %params = ( SELF => $self, host => hostname, - database => $::myconfig{dbname}, + database => $::auth->client->{dbname}, + client => $::auth->client->{name}, path => $FindBin::Bin, ); diff --git a/templates/mail/self_test/status_mail.txt b/templates/mail/self_test/status_mail.txt index 2dc69dc41..7c3d306df 100644 --- a/templates/mail/self_test/status_mail.txt +++ b/templates/mail/self_test/status_mail.txt @@ -3,6 +3,7 @@ kivitendo selftest report. Host: [% host %] Path: [% path %] DB: [% database %] +Client: [% client %] Result: [% SELF.aggreg.get_status %] ------------ -- 2.20.1