We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4822e92 commit 8fefd3aCopy full SHA for 8fefd3a
3 files changed
elements/etc-hosts/README.rst
@@ -0,0 +1,6 @@
1
+=========
2
+etc-hosts
3
4
+Appends text to /etc/hosts.
5
+
6
+`DIB_ETC_HOSTS_EXTRA`: Lines to add to /etc/hosts
elements/etc-hosts/environment.d/etc-hosts
@@ -0,0 +1,3 @@
+#!/bin/bash
+export ETC_HOSTS_EXTRA=${DIB_ETC_HOSTS_EXTRA:?"You must define DIB_ETC_HOSTS_EXTRA"}
elements/etc-hosts/pre-install.d/01-etc-hosts
@@ -0,0 +1,9 @@
+if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
+ set -x
+fi
+set -eu
7
+set -o pipefail
8
9
+echo "$ETC_HOSTS_EXTRA" >> /etc/hosts
0 commit comments