summaryrefslogtreecommitdiffstats
path: root/main/bacula/bacula.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'main/bacula/bacula.post-install')
-rw-r--r--main/bacula/bacula.post-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/bacula/bacula.post-install b/main/bacula/bacula.post-install
new file mode 100644
index 000000000..caeda8993
--- /dev/null
+++ b/main/bacula/bacula.post-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+mkdir /var/lib/bacula /var/log/bacula &>/dev/null
+for dir in /var/bacula /var/log/bacula /var/run/bacula /var/lib/bacula /etc/bacula/scripts/make_catalog_backup* /etc/bacula/scripts/mtx-changer*
+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