X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=630dce4735447f0221dd7ea2dfd840042a263425;hb=d671b65eaa51d62a3f623d522858e3ed9e4c31c2;hp=5e06a5cd44724f5b12ddc33a7a4bee99b6fe4f9e;hpb=8b6471f09ecf1312e12aab4b8f12da811f434964;p=bacula-cn.git diff --git a/debian/postinst b/debian/postinst index 5e06a5c..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 allpools" - } + 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 )