summarylogtreecommitdiffstats
path: root/bareos-filedaemon.install
diff options
context:
space:
mode:
Diffstat (limited to 'bareos-filedaemon.install')
-rw-r--r--bareos-filedaemon.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/bareos-filedaemon.install b/bareos-filedaemon.install
new file mode 100644
index 00000000000..60f03d6257c
--- /dev/null
+++ b/bareos-filedaemon.install
@@ -0,0 +1,8 @@
+## 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 root:bareos /etc/bareos/bareos-fd.conf
+ chmod 640 /etc/bareos/bareos-fd.conf
+}