summaryrefslogtreecommitdiffstats
path: root/main/bacula/bacula.post-install
blob: caeda8993f6340f9fc3e6a80c45e5af6c03c65c3 (plain)
1
2
3
4
5
6
7
8
9
10
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