summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2016-06-23 15:09:28 (GMT)
committerBen Brown <ben.brown@codethink.co.uk>2016-06-23 15:09:28 (GMT)
commit1c00ba65d8314d91510780c4cca76d3e217372d5 (patch)
treecb5e9783b065b7e729e8c7abee55e24db10cd92a
parent06f030494364e1d5937be125dc16ea8b69497bd6 (diff)
downloaddefinitions-1c00ba65d8314d91510780c4cca76d3e217372d5.tar.gz
Create /etc in the crazy circumstance it doesn't exist
Change-Id: Ie47d1c1d59f208287dd4e4170a195cc4e8a79da4
-rwxr-xr-xextensions/set-hostname.configure1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/set-hostname.configure b/extensions/set-hostname.configure
index 4b2424d..3c40056 100755
--- a/extensions/set-hostname.configure
+++ b/extensions/set-hostname.configure
@@ -21,6 +21,7 @@ set -e
if [ -n "$HOSTNAME" ]
then
+ mkdir -p "$1/etc"
echo "$HOSTNAME" > "$1/etc/hostname"
fi