summarylogtreecommitdiffstats
path: root/bareos-director.install
blob: d7d6f79c289d8e6183044fc9599dd654cd33d3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## 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-dir.d
   chown bareos:bareos /usr/bin/bareos-dir

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

post_upgrade() {
   post_install
}