-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup-2-install-simple
executable file
·62 lines (46 loc) · 1.31 KB
/
setup-2-install-simple
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
echo '
****************
Read this setup file before running it... It will make you feel better.
****************
'
echo '
You MUST have SSL keys, this script will copy the public key from .ssh/id_rsa.pub
into install/requirements.
You MUST modify your /etc/hosts to have an ip for mail.YOURSITE.xxx...
'
echo 'Press return when this is ready'
read dummy
echo 'Enter the name of your site (example: joesmail.com):'
read site
target=mail.$site
echo "Site name will be: $site, the target machine will be $target"
echo "";
echo 'configuring the hosts files which are used in deploy and compilation'
pushd config/hosts
./make-prod $site
./make-dev $site
popd
echo 'Enter the name of the root user on the computer you are going to INSTALL on (probably root, maybe ubuntu):'
read rootuser
echo 'OK, starting:'
echo $rootuser > install/requirements/server_root_account
pushd install/requirements
./get_rsa_pub
popd
echo "
I am now going to enable passwordless login on the $target INSTALL computer
You will need to enter the password a few times...
"
echo '
Press <return> to start
'
read dummy1
pushd install
./enable-passwordless-sudo $target
./enable-passwordless-login $target
echo '
Hopefully that went well, if it didn-t well, press control-c now
I am now going to setup the target machine.
Press <return> to start
'
read dummy2