#!/bin/sh set -e if [ -n "${new_host_name}" ]; then cat << EOName > /etc/hostname ${new_host_name} EOName hostname -F /etc/hostname fi