summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcrypt-expiry-check.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypt-expiry-check.in b/crypt-expiry-check.in
index aade444..100ff0c 100755
--- a/crypt-expiry-check.in
+++ b/crypt-expiry-check.in
@@ -84,6 +84,7 @@ SORT=$(which sort)
TAIL=$(which tail)
MKTEMP=$(which mktemp)
GPG=$(which gpg)
+HOSTNAME=$(hostname)
# Try to find a mail client
MAIL="cantfindit"
@@ -180,7 +181,7 @@ print_heading()
${PRINTF} "\n%-35s %-35s %-32s\n" "Host" "Common Name" "Serial #" >> ${STDOUT_TMP}
echo "----------------------------------- ----------------------------------- --------------------------------" >> ${STDOUT_TMP}
fi
- echo "Dear admin," >> ${MAILOUT_TMP}
+ ${PRINTF} "Dear admin of %s,\n" "${HOSTNAME}" >> ${MAILOUT_TMP}
fi
}