aboutsummaryrefslogtreecommitdiffstats
path: root/main/bacula/bacula.post-install
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-06-08 14:45:04 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-06-08 14:45:04 +0000
commitad5a02324292519891ef495f66889a1878a1275a (patch)
tree4427baf357535c21c1567f3a8327191718b83808 /main/bacula/bacula.post-install
parente78cd26eef84709827ac616b1f06b1f2ff44f83b (diff)
downloadaports-ad5a02324292519891ef495f66889a1878a1275a.tar.bz2
aports-ad5a02324292519891ef495f66889a1878a1275a.tar.xz
main/bacula: moved from testing
Diffstat (limited to 'main/bacula/bacula.post-install')
-rw-r--r--main/bacula/bacula.post-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/bacula/bacula.post-install b/main/bacula/bacula.post-install
new file mode 100644
index 0000000000..a092957361
--- /dev/null
+++ b/main/bacula/bacula.post-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+for dir in /var/bacula /var/log/bacula /var/run/bacula /var/lib/bacula /etc/bacula/scripts/make_catalog_backup*
+do
+ chown bacula.bacula $dir
+done
+
+for file in create_postgresql_database make_postgresql_tables grant_postgresql_privileges
+do
+ chown postgres /etc/bacula/scripts/$file
+done