Last change
on this file since 1511 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 | |
---|
3 | name=$1 |
---|
4 | deploy=$2 |
---|
5 | addrend=$3 |
---|
6 | admin_username=$4 |
---|
7 | cd $HOME/web_scripts/$addrend |
---|
8 | |
---|
9 | echo |
---|
10 | echo You will be able to control your copy of $name by logging in to |
---|
11 | echo $name using username \"$admin_username\". This account will have a |
---|
12 | echo password of your choice. You should not use your Athena account password. |
---|
13 | |
---|
14 | done="0" |
---|
15 | while [ "$done" = "0" ] |
---|
16 | do |
---|
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 |
---|
34 | done |
---|
35 | |
---|
36 | echo |
---|
37 | echo OK. Continuing with the install... |
---|
38 | cat <<EOF > $HOME/web_scripts/$addrend/.admin |
---|
39 | $admin_pass1 |
---|
40 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.