mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-22 05:18:48 -05:00
more setup
This commit is contained in:
parent
8a2a6582b0
commit
a5e423727a
@ -26,11 +26,4 @@ pushd keys
|
||||
popd
|
||||
popd
|
||||
|
||||
echo 'Enter the name of your site (example: joesmail.com):'
|
||||
read site
|
||||
|
||||
pushd config/hosts
|
||||
./make-prod $site
|
||||
./make-dev $site
|
||||
popd
|
||||
|
61
setup-2-install
Executable file
61
setup-2-install
Executable file
@ -0,0 +1,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 '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
|
||||
(cd install/requirements && ./get_rsa_pub)
|
||||
|
||||
echo '
|
||||
I am now going to enable passwordless login on the $target INSTALL computer
|
||||
You will need to enter the password
|
||||
Press <return> to start
|
||||
';
|
||||
read dummy
|
||||
|
||||
cd install
|
||||
|
||||
./enable-passwordless-login $target
|
||||
|
||||
echo '
|
||||
Hopefully that went well, if it didn't well, press control-c now
|
||||
I'm now going to setup the target machine.
|
||||
Press <return> to start
|
||||
';
|
||||
read dummy;
|
||||
|
||||
./setup-server $target
|
||||
|
||||
echo '
|
||||
Hopefully that went well.....
|
||||
|
||||
Please run the next setup script
|
||||
'
|
3
setup-3-compile
Executable file
3
setup-3-compile
Executable file
@ -0,0 +1,3 @@
|
||||
cd build
|
||||
./compile-all
|
||||
|
2
setup-4-deploy
Executable file
2
setup-4-deploy
Executable file
@ -0,0 +1,2 @@
|
||||
cd deploy
|
||||
./server-deploy-all
|
Loading…
Reference in New Issue
Block a user