aboutsummaryrefslogtreecommitdiff
path: root/files/etc/hosts/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'files/etc/hosts/preinst')
-rw-r--r--files/etc/hosts/preinst10
1 files changed, 10 insertions, 0 deletions
diff --git a/files/etc/hosts/preinst b/files/etc/hosts/preinst
new file mode 100644
index 0000000..ee32e3a
--- /dev/null
+++ b/files/etc/hosts/preinst
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+# template expansion
+
+# $1 is the class name used
+# $2 is the path to the file copied
+
+envsubst < $2 > $2.tmp
+mv $2.tmp $2
+