mailiverse/setup-2-install

79 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2013-09-28 19:15:17 -04:00
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
2013-09-29 11:43:45 -04:00
target=mail.$site
echo "Site name will be: $site, the target machine will be $target"
echo "";
2013-09-28 19:15:17 -04:00
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
2013-09-29 11:43:45 -04:00
pushd install/requirements
./get_rsa_pub
popd
2013-09-28 19:15:17 -04:00
2013-09-28 19:36:45 -04:00
echo "
2013-09-28 19:15:17 -04:00
I am now going to enable passwordless login on the $target INSTALL computer
2013-09-29 11:43:45 -04:00
You will need to enter the password a few times...
"
2013-09-28 19:36:45 -04:00
echo '
2013-09-28 19:15:17 -04:00
Press <return> to start
2013-09-29 11:43:45 -04:00
'
read dummy1
2013-09-28 19:15:17 -04:00
2013-09-29 11:43:45 -04:00
pushd install
2013-10-04 22:37:51 -04:00
./enable-passwordless-sudo $target
./enable-passwordless-login $target
2013-09-28 19:15:17 -04:00
echo '
2013-09-29 11:43:45 -04:00
Hopefully that went well, if it didn-t well, press control-c now
I am now going to setup the target machine.
2013-09-28 19:15:17 -04:00
Press <return> to start
2013-09-29 11:43:45 -04:00
'
read dummy2
2013-09-28 19:15:17 -04:00
./setup-server $target
echo '
2013-10-05 13:07:42 -04:00
Setup part 2 has finished.
The MYSQL root password on the target machine is BLANK.
You should change the root password to be whatever you want.
Mailiverse doesn't need it anymore.
Please run setup part 3.
2013-10-05 12:46:29 -04:00
2013-09-28 19:15:17 -04:00
'
2013-09-29 11:43:45 -04:00
popd