From a5e423727a84a135205eaa29f0f58d1edea64efb Mon Sep 17 00:00:00 2001 From: Timothy Prepscius Date: Sat, 28 Sep 2013 19:15:17 -0400 Subject: [PATCH] more setup --- setup => setup-1-dependencies-basics | 7 ---- setup-2-install | 61 ++++++++++++++++++++++++++++ setup-3-compile | 3 ++ setup-4-deploy | 2 + 4 files changed, 66 insertions(+), 7 deletions(-) rename setup => setup-1-dependencies-basics (64%) create mode 100755 setup-2-install create mode 100755 setup-3-compile create mode 100755 setup-4-deploy diff --git a/setup b/setup-1-dependencies-basics similarity index 64% rename from setup rename to setup-1-dependencies-basics index 58af42a..cacdad9 100755 --- a/setup +++ b/setup-1-dependencies-basics @@ -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 diff --git a/setup-2-install b/setup-2-install new file mode 100755 index 0000000..53b74b5 --- /dev/null +++ b/setup-2-install @@ -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 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 to start +'; +read dummy; + +./setup-server $target + +echo ' +Hopefully that went well..... + +Please run the next setup script +' diff --git a/setup-3-compile b/setup-3-compile new file mode 100755 index 0000000..5468042 --- /dev/null +++ b/setup-3-compile @@ -0,0 +1,3 @@ +cd build +./compile-all + diff --git a/setup-4-deploy b/setup-4-deploy new file mode 100755 index 0000000..c89b3d8 --- /dev/null +++ b/setup-4-deploy @@ -0,0 +1,2 @@ +cd deploy +./server-deploy-all