accept numbers in host names in mellon_create_metadata.sh

Pulled from upstream commit 693b675d7dc576ca5d3d7450235d396d52ab5776
This commit is contained in:
John Dennis 2017-02-14 12:35:58 -05:00
parent dc9da1f6f1
commit b1f3f2443c

View File

@ -36,7 +36,7 @@ fi
HOST="$(echo "$BASEURL" | sed 's#^[a-z]*://\([^/]*\).*#\1#')"
BASEURL="$(echo "$BASEURL" | sed 's#/$##')"
OUTFILE="$(echo "$ENTITYID" | sed 's/[^A-Za-z.]/_/g' | sed 's/__*/_/g')"
OUTFILE="$(echo "$ENTITYID" | sed 's/[^0-9A-Za-z.]/_/g' | sed 's/__*/_/g')"
echo "Output files:"
echo "Private key: $OUTFILE.key"
echo "Certificate: $OUTFILE.cert"