summarylogtreecommitdiffstats
path: root/bareos-director.install
diff options
context:
space:
mode:
Diffstat (limited to 'bareos-director.install')
-rw-r--r--bareos-director.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/bareos-director.install b/bareos-director.install
new file mode 100644
index 00000000000..3c1c168c747
--- /dev/null
+++ b/bareos-director.install
@@ -0,0 +1,11 @@
+## 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
+ /usr/lib/bareos/scripts/bareos-config initialize_database_driver
+ /usr/lib/bareos/scripts/bareos-config apply_dbconfig_settings
+
+ chown root:bareos /etc/bareos/bareos-dir.d
+ chown root:bareos /etc/bareos/bareos-dir.conf
+ chmod 640 /etc/bareos/bareos-dir.conf
+}