Skip to content
Snippets Groups Projects
Commit 1d85ddb3 authored by Bob Mottram's avatar Bob Mottram
Browse files

Optional admin email address

parent 0b2c499f
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,10 @@ fi
if [ ! "$ADMIN_USERNAME" ]; then
ADMIN_USERNAME=$(grep "Admin user" "$COMPLETION_FILE" | awk -F ':' '{print $2}')
fi
ADMIN_EMAIL_ADDRESS=${ADMIN_USERNAME}@${HOSTNAME}
if [ ! "$ADMIN_EMAIL_ADDRESS" ]; then
ADMIN_EMAIL_ADDRESS=${ADMIN_USERNAME}@${HOSTNAME}
fi
# send email to administrator
if [ "$SUBJECT" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment