mirror of
https://github.com/moparisthebest/mailiverse
synced 2025-02-17 06:10:11 -05:00
more little changes
This commit is contained in:
parent
6b6e221b35
commit
0462a1e326
27
README.md
27
README.md
@ -5,35 +5,24 @@ This documents talks about installing mailiverse from an origin to a target.
|
|||||||
|
|
||||||
------- Requirements on the origin build machine ---------
|
------- Requirements on the origin build machine ---------
|
||||||
|
|
||||||
To install from and build mailiverse from the origin, the origin must
|
To install from and build mailiverse from the origin, the origin must:
|
||||||
have "git", "ant", "rsync" and "oracle java" installed. (Other javas might work, but I have
|
|
||||||
not tested them.) Also, your hosts file must point to mail.target and target.
|
|
||||||
|
|
||||||
I have always used Ubuntu 12.04 or 13 as my target machine.
|
1. Have git installed
|
||||||
The build works on Ubuntu 12.04 and also OSX (with dev tools).
|
|
||||||
|
|
||||||
|
|
||||||
To install git:
|
|
||||||
sudo apt-get install git --yes
|
sudo apt-get install git --yes
|
||||||
|
|
||||||
|
2. Have unzip installed
|
||||||
To install zip:
|
|
||||||
sudo apt-get install unzip --yes
|
sudo apt-get install unzip --yes
|
||||||
|
|
||||||
|
3. Have ant installed
|
||||||
To install ant:
|
|
||||||
sudo apt-get install ant --yes
|
sudo apt-get install ant --yes
|
||||||
|
|
||||||
Clone the mailiverse:
|
4. Clone the mailiverse:
|
||||||
git clone https://github.com/timprepscius/mailiverse.git
|
git clone https://github.com/timprepscius/mailiverse.git
|
||||||
|
|
||||||
|
5. Have oracle java installed
|
||||||
|
cd mailiverse/install && sudo ./setup-java.remote
|
||||||
|
|
||||||
To install java:
|
6. Add lines to the hosts file for the target machine
|
||||||
cd mailiverse/install
|
|
||||||
sudo ./setup-java.remote
|
|
||||||
|
|
||||||
|
|
||||||
To make the hosts file point to the correct place:
|
|
||||||
sudo nano /etc/hosts
|
sudo nano /etc/hosts
|
||||||
add the lines:
|
add the lines:
|
||||||
SOME-IP-ADDRESS mail.whateverthenameofyourdomainis
|
SOME-IP-ADDRESS mail.whateverthenameofyourdomainis
|
||||||
|
8
install/enable-passwordless-sudo
Executable file
8
install/enable-passwordless-sudo
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
|
||||||
|
|
||||||
|
set -x
|
||||||
|
M_ROOT=`cat requirements/server_root_account`
|
||||||
|
M_HOST=$1
|
||||||
|
|
||||||
|
scp enable-passwordless-sudo.remote $M_ROOT@$M_HOST:
|
||||||
|
ssh $M_ROOT@$M_HOST sudo ./enable-passwordless-sudo.remote $M_ROOT
|
5
install/enable-passwordless-sudo.remote
Executable file
5
install/enable-passwordless-sudo.remote
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
echo "
|
||||||
|
$1 ALL=(ALL) NOPASSWD: ALL
|
||||||
|
" >> /etc/sudoers.d/$1
|
||||||
|
|
||||||
|
chmod 0440 /etc/sudoers.d/$1
|
@ -51,6 +51,7 @@ read dummy1
|
|||||||
|
|
||||||
pushd install
|
pushd install
|
||||||
./enable-passwordless-login $target
|
./enable-passwordless-login $target
|
||||||
|
./enable-passwordless-sudo $target
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
Hopefully that went well, if it didn-t well, press control-c now
|
Hopefully that went well, if it didn-t well, press control-c now
|
||||||
|
Loading…
Reference in New Issue
Block a user