summaryrefslogtreecommitdiff
path: root/bareos/bareos-storage.install
blob: 12cf3285b11ed81aa3df18522f9ce942f84df535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## 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 /usr/share/bareos/config/bareos-sd.d

	chown bareos:bareos /usr/bin/bareos-sd

	chown bareos:bareos /var/lib/bareos/storage/

	/usr/lib/bareos/scripts/bareos-config setup_sd_user
}

post_upgrade() {
	post_install
}