From 4786bd0cbebb84a9b16076d9b9fb7a873fef3924 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 22 Jan 2021 00:40:09 +0000 Subject: [PATCH] create meshusername during install --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 37c8ce5f..32c1ce2b 100644 --- a/install.sh +++ b/install.sh @@ -80,6 +80,7 @@ ADMINURL=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 70 | head -n 1) MESHPASSWD=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 25 | head -n 1) pgusername=$(cat /dev/urandom | tr -dc 'a-z' | fold -w 8 | head -n 1) pgpw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1) +meshusername=$(cat /dev/urandom | tr -dc 'a-z' | fold -w 8 | head -n 1) cls() { printf "\033c" @@ -162,9 +163,6 @@ if echo "$IPV4" | grep -qE '^(10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.|192 BEHIND_NAT=true fi -echo -ne "${YELLOW}Create a username for meshcentral${NC}: " -read meshusername - sudo apt install -y software-properties-common sudo apt update sudo apt install -y certbot openssl @@ -813,6 +811,7 @@ echo ${MESHEXE} | sed 's/{.*}//' printf >&2 "${NC}\n\n" printf >&2 "${YELLOW}Access your rmm at: ${GREEN}https://${frontenddomain}${NC}\n\n" printf >&2 "${YELLOW}Django admin url: ${GREEN}https://${rmmdomain}/${ADMINURL}${NC}\n\n" +printf >&2 "${YELLOW}MeshCentral username: ${GREEN}${meshusername}${NC}\n" printf >&2 "${YELLOW}MeshCentral password: ${GREEN}${MESHPASSWD}${NC}\n\n" if [ "$BEHIND_NAT" = true ]; then