[installer] Fix #4 - ensure generated prefixes are valid

This commit is contained in:
Paul Schoenfelder 2018-04-29 00:33:06 -04:00
parent 56fef2c984
commit cc6d423911
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ function destroy() {
function provision() {
# If INFRA_PREFIX has not been set yet, request it from user
if [ -z "$INFRA_PREFIX" ]; then
DEFAULT_INFRA_PREFIX=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 8 | head -n 1)
DEFAULT_INFRA_PREFIX=$(tr -dc 'a-z0-9' < /dev/urandom | fold -w 8 | head -n 1)
warnb << EOF
# Infrastructure Prefix