summaryrefslogtreecommitdiff
path: root/bareos/bareos-bconsole.install
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-25 15:40:41 +0100
committerErich Eckner <git@eckner.net>2019-02-25 15:40:41 +0100
commitcbc416a25d57f5541531186b402d8df9400de179 (patch)
treea6233243e6a912b72bcbb085e3cced26aaefb404 /bareos/bareos-bconsole.install
parent8949a82c8aa34b44a06fef23f3cc1f3f5c6010d6 (diff)
downloadarchlinuxewe-cbc416a25d57f5541531186b402d8df9400de179.tar.xz
bareos new
Diffstat (limited to 'bareos/bareos-bconsole.install')
-rw-r--r--bareos/bareos-bconsole.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/bareos/bareos-bconsole.install b/bareos/bareos-bconsole.install
new file mode 100644
index 000000000..0b1c1d30f
--- /dev/null
+++ b/bareos/bareos-bconsole.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 /usr/share/bareos/config/bconsole.conf
+ chmod 640 /usr/share/bareos/config/bconsole.conf
+}
+
+post_upgrade() {
+ post_install
+}