source: locker/deploy/bin/prompt-password @ 1101

Last change on this file since 1101 was 239, checked in by jbarnold, 18 years ago
First attempt to fix autoinstaller bug Using a subdir of web_scripts seems to be smarter
  • Property svn:executable set to *
File size: 1012 bytes
Line 
1#!/bin/sh
2
3name=$1
4deploy=$2
5addrend=$3
6admin_username=$4
7cd $HOME/web_scripts/$addrend
8
9echo
10echo You will be able to control your copy of $name by logging in to
11echo $name using username \"$admin_username\".  This account will have a
12echo password of your choice.  You should not use your Athena account password.
13
14done="0"
15while [ "$done" = "0" ]
16do
17  echo "Please decide upon an admin password, type it, and press [enter]."
18  echo "This password may only contain a-z, A-Z, and 0-9."
19  printf "As you type your password, the cursor will not move: "
20  read admin_pass1
21  echo
22  echo
23  echo "Now please type the same password again and press [enter]."
24  printf "As you type your password, the cursor will not move: "
25  read admin_pass2
26  echo
27
28  if [ "$admin_pass1" = "$admin_pass2" ]; then
29    done="1"
30  else
31    echo
32    echo == Sorry, those passwords do not match.  Please try again. ==
33  fi
34done
35
36echo
37echo OK.  Continuing with the install...
38cat <<EOF > $HOME/web_scripts/$addrend/.admin
39$admin_pass1
40EOF
Note: See TracBrowser for help on using the repository browser.