diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2016-06-23 16:09:28 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2016-06-23 16:09:28 +0100 |
commit | 1c00ba65d8314d91510780c4cca76d3e217372d5 (patch) | |
tree | cb5e9783b065b7e729e8c7abee55e24db10cd92a /extensions/set-hostname.configure | |
parent | 06f030494364e1d5937be125dc16ea8b69497bd6 (diff) | |
download | definitions-1c00ba65d8314d91510780c4cca76d3e217372d5.tar.gz |
Create /etc in the crazy circumstance it doesn't exist
Change-Id: Ie47d1c1d59f208287dd4e4170a195cc4e8a79da4
Diffstat (limited to 'extensions/set-hostname.configure')
-rwxr-xr-x | extensions/set-hostname.configure | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/set-hostname.configure b/extensions/set-hostname.configure index 4b2424d8..3c400563 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 |