From: Valentin Vidic Date: Thu, 16 Feb 2012 12:42:17 +0000 (+0100) Subject: Add Messages block. X-Git-Tag: debian/20120216~2 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=d671b65eaa51d62a3f623d522858e3ed9e4c31c2;p=bacula-cn.git Add Messages block. --- 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 )