X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=630dce4735447f0221dd7ea2dfd840042a263425;hb=d671b65eaa51d62a3f623d522858e3ed9e4c31c2;hp=1a1fbb6d0eeec3b55a942334969014dc71bce10a;hpb=fc072bdf2d121161fdafd31559f1d63049b177c3;p=bacula-cn.git diff --git a/debian/postinst b/debian/postinst index 1a1fbb6..630dce4 100644 --- a/debian/postinst +++ b/debian/postinst @@ -259,34 +259,19 @@ Console { Password = "$PASS_BCONSOLE" # password for bconsole(8) JobACL = $HOST, RestoreFiles ClientACL = $HOST-fd - StorageACL = $HOST-stor - PoolACL = $HOST-pool, tmp -} - -Pool { - Name = $HOST-pool - @/etc/bacula/include/pool-default.conf - Label Format = ${HOST}_ -} - -Storage { - Name = $HOST-stor - @/etc/bacula/include/storage-default.conf - Device = file_$HOST - Media Type = media_$HOST } Job { Name = "$HOST" Client = $HOST-fd - JobDefs = "Job_SysBackup" - Pool = $HOST-pool - Storage = $HOST-stor - RunScript { - RunsWhen=After - RunsOnClient=No - Console = "purge volume action=all storage=$HOST-stor pool=$HOST-pool" - } + JobDefs = "Job_TapeBackup" + Messages = messages-$HOST +} + +Messages { + Name = messages-$HOST + @/etc/bacula/include/messages-defaults.conf + mail = $EMAIL = all, !skipped } EOF @@ -329,6 +314,8 @@ load_config() { db_get bacula-cn/contact CONTACT=$RET + EMAIL=${CONTACT#*<} + EMAIL=${EMAIL%>*} PASS_FD=$( random_string ) PASS_BCONSOLE=$( random_string )