#!/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* 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