#!/bin/sh ALTNAME=${1} if [[ -z $ALTNAME ]]; then echo "Error while creating or renewing letsencrypt certificate" | mail -s "Letsencrypt error" admin fi