summarylogtreecommitdiffstats
path: root/bareos-storage.install
diff options
context:
space:
mode:
Diffstat (limited to 'bareos-storage.install')
-rw-r--r--bareos-storage.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/bareos-storage.install b/bareos-storage.install
new file mode 100644
index 00000000000..9ffd7d99feb
--- /dev/null
+++ b/bareos-storage.install
@@ -0,0 +1,12 @@
+## 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-sd.conf
+ chown root:bareos /etc/bareos/bareos-sd.d
+ chown root:bareos /var/lib/bareos/storage/
+ chmod 640 /etc/bareos/bareos-sd.conf
+
+ /usr/lib/bareos/scripts/bareos-config setup_sd_user
+}