From 277ca32367a7524e336ec0b4c94223060993608e Mon Sep 17 00:00:00 2001 From: ILoveYaToo Date: Fri, 22 Jan 2021 05:25:50 -0500 Subject: [PATCH] update user creation tool --- ubuntu/src/create-user.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ubuntu/src/create-user.sh b/ubuntu/src/create-user.sh index 8543cdf..4f8b699 100755 --- a/ubuntu/src/create-user.sh +++ b/ubuntu/src/create-user.sh @@ -1,12 +1,13 @@ #!/usr/bin/expect eval spawn /opt/postal/bin/postal make-user expect "E-Mail" -send "$env(POSTAL_EMAIL)\n" +send "$env(POSTAL_EMAIL)\r" expect "First Name" -send "$env(POSTAL_FNAME)\n" +send "$env(POSTAL_FNAME)\r" expect "Last Name" -send "$env(POSTAL_LNAME)\n" +send "$env(POSTAL_LNAME)\r" expect "Password" -send "$env(POSTAL_PASSWORD)\n" -send "\n" +sleep 5 +send "$env(POSTAL_PASSWORD)\r" +send "\r" interact