mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-23 17:12:16 -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 ---------
|
||||
|
||||
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.
|
||||
To install from and build mailiverse from the origin, the origin must:
|
||||
|
||||
I have always used Ubuntu 12.04 or 13 as my target machine.
|
||||
The build works on Ubuntu 12.04 and also OSX (with dev tools).
|
||||
|
||||
|
||||
To install git:
|
||||
1. Have git installed
|
||||
sudo apt-get install git --yes
|
||||
|
||||
|
||||
To install zip:
|
||||
2. Have unzip installed
|
||||
sudo apt-get install unzip --yes
|
||||
|
||||
|
||||
To install ant:
|
||||
3. Have ant installed
|
||||
sudo apt-get install ant --yes
|
||||
|
||||
Clone the mailiverse:
|
||||
4. Clone the mailiverse:
|
||||
git clone https://github.com/timprepscius/mailiverse.git
|
||||
|
||||
5. Have oracle java installed
|
||||
cd mailiverse/install && sudo ./setup-java.remote
|
||||
|
||||
To install java:
|
||||
cd mailiverse/install
|
||||
sudo ./setup-java.remote
|
||||
|
||||
|
||||
To make the hosts file point to the correct place:
|
||||
6. Add lines to the hosts file for the target machine
|
||||
sudo nano /etc/hosts
|
||||
add the lines:
|
||||
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
|
||||
./enable-passwordless-login $target
|
||||
./enable-passwordless-sudo $target
|
||||
|
||||
echo '
|
||||
Hopefully that went well, if it didn-t well, press control-c now
|
||||
|
Loading…
Reference in New Issue
Block a user