summarylogtreecommitdiffstats
path: root/bacula.install
diff options
context:
space:
mode:
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
+}