diff options
Diffstat (limited to 'main/bacula/bacula.post-install')
-rw-r--r-- | main/bacula/bacula.post-install | 10 |
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 |