summarylogtreecommitdiffstats
path: root/bareos-bconsole.install
diff options
context:
space:
mode:
authorMichael Spradling2015-11-15 01:14:04 -0500
committerMichael Spradling2015-11-15 23:40:10 -0500
commite78a364794d21740b231b157604b344e7da0953b (patch)
tree49ec458eeb1d2981ba56522994ad385d4808d80e /bareos-bconsole.install
parentffde4bcde03eb40fe0738d47b081c26d18660362 (diff)
downloadaur-e78a364794d21740b231b157604b344e7da0953b.tar.gz
Add install scripts.
Processes now run as user bareos. etc files are backup
Diffstat (limited to 'bareos-bconsole.install')
-rw-r--r--bareos-bconsole.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/bareos-bconsole.install b/bareos-bconsole.install
new file mode 100644
index 00000000000..ad7ebd49745
--- /dev/null
+++ b/bareos-bconsole.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/bconsole.conf
+ chmod 640 /etc/bareos/bconsole.conf
+}