summaryrefslogtreecommitdiff
path: root/bareos/bareos-storage.install
blob: 2b05bd651f29ce3b77ef78fbdf05238661aef85b (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 /etc/bareos/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
}