#!/usr/bin/env bash ## ## Generates the html for the placeholder site ## ## ## The variable "DOMAIN" should be defined in the calling script (start.bash) ## ## Warning, copy pasta: ## Attempting to prevent page caching. This is done by adding the head and meta ## tags, as demonstrated on this site. Hard to test until deployed. ## https://cristian.sulea.net/blog/disable-browser-caching-with-meta-html-tags/ # # For develpment sites: htmlToDeploy="""

Hello from ${DOMAIN}!

The development site that normally lives at ${DOMAIN} is on bardo right now. It should be reincarnated soon.

We apologize for any inconvenience.

In the meantime, please see our main site, main website. """ # # For the main site: TimeFixedText="We do not yet know when the site will be back up." if [ "${BackUpDateTime}zzz" != "zzz" ] ; then TimeFixedText="We expect the site to be back up by: ${BackUpDateTime}." fi if [ "${DOMAIN}" == "${MainDomain}" ] ; then htmlToDeploy="""

Hello from ${DOMAIN}!

The site that normally lives at ${DOMAIN} is down for maintenance. The development team has been informed.

${TimeFixedText}

We apologize for any inconvenience.

""" fi echo "${htmlToDeploy}" > htdocs/index.html