summaryrefslogtreecommitdiff
path: root/bareos/bareos-director.install
blob: b464fee644f5c6c067777c616c4514db1eb32ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## arg 1:  the new package version
post_install() {
	/usr/lib/bareos/scripts/bareos-config initialize_local_hostname
	/usr/lib/bareos/scripts/bareos-config initialize_passwords

	chown -R bareos:bareos /etc/bareos

	/usr/lib/bareos/scripts/bareos-config initialize_database_driver
	/usr/lib/bareos/scripts/bareos-config apply_dbconfig_settings

	#for dir in /etc/bareos/bareos-dir-export/ /etc/bareos/bareos-dir-export/client; do
		#chown bareos:bareos "$dir"
		#chmod 750 "$dir"
	#done
}

post_upgrade() {
	post_install
}