#!/bin/sh set -xe HOSTNAME=$(cat /etc/hostname) cat << EOF > /usr/share/nginx/html/index.html hello my friend, this is backend host "${HOSTNAME}" speaking. have a nice day, mate. EOF exit 0