summarylogtreecommitdiffstats
path: root/bacula.install
diff options
context:
space:
mode:
authorTom Keller2015-11-02 00:59:58 -0500
committerTom Keller2015-11-02 00:59:58 -0500
commit01ccc3999b947c20cfbb06362c20f797a36363ee (patch)
tree7ee9ba6b07352989015aedaa62e16ebdc7435f18 /bacula.install
parentbe932d9512e85764c2874b0e31e79225a9a74c19 (diff)
downloadaur-01ccc3999b947c20cfbb06362c20f797a36363ee.tar.gz
Push to version 7.2, add postinst script
Diffstat (limited to 'bacula.install')
-rwxr-xr-xbacula.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/bacula.install b/bacula.install
new file mode 100755
index 00000000000..bcc3cd9a497
--- /dev/null
+++ b/bacula.install
@@ -0,0 +1,4 @@
+post_install() {
+ SERVERNAME=$(hostname -s)
+ sed -i "s/__BASENAME__/${SERVERNAME}/g" /etc/bacula/*.conf
+}