summaryrefslogtreecommitdiff
path: root/bareos/bareos-storage.install
blob: 88333637365955b266e6ea65143cb01667a0920b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## 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
	chown bareos:bareos /var/lib/bareos/storage/

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

post_upgrade() {
	post_install
}