From d671b65eaa51d62a3f623d522858e3ed9e4c31c2 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 16 Feb 2012 13:42:17 +0100 Subject: [PATCH] Add Messages block. --- debian/postinst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/postinst b/debian/postinst index e606fb6..630dce4 100644 --- a/debian/postinst +++ b/debian/postinst @@ -265,6 +265,13 @@ Job { Name = "$HOST" Client = $HOST-fd JobDefs = "Job_TapeBackup" + Messages = messages-$HOST +} + +Messages { + Name = messages-$HOST + @/etc/bacula/include/messages-defaults.conf + mail = $EMAIL = all, !skipped } EOF @@ -307,6 +314,8 @@ load_config() { db_get bacula-cn/contact CONTACT=$RET + EMAIL=${CONTACT#*<} + EMAIL=${EMAIL%>*} PASS_FD=$( random_string ) PASS_BCONSOLE=$( random_string ) -- 1.7.10.4