Purge all pools.
[bacula-cn.git] / debian / postinst
index 6e40f97..5e06a5c 100644 (file)
@@ -260,7 +260,7 @@ Console {
   JobACL = $HOST, RestoreFiles
   ClientACL = $HOST-fd
   StorageACL = $HOST-stor
-  PoolACL = $HOST-pool
+  PoolACL = $HOST-pool, tmp
 }
 
 Pool {
@@ -282,6 +282,11 @@ Job {
   JobDefs = "Job_SysBackup"
   Pool = $HOST-pool
   Storage = $HOST-stor
+  RunScript {
+    RunsWhen=After
+    RunsOnClient=No
+    Console = "purge volume action=all storage=$HOST-stor allpools"
+   }
 }
 EOF