Skip to content

Instantly share code, notes, and snippets.

@xmppjingle
Created September 15, 2016 14:19
Show Gist options
  • Save xmppjingle/996f066090ee954711b07913ad4255d1 to your computer and use it in GitHub Desktop.
Save xmppjingle/996f066090ee954711b07913ad4255d1 to your computer and use it in GitHub Desktop.
ejabberd install generic
git clone https://github.com/xmppjingle/ejabberd.git
cd ejabberd
. /opt/erl18.3/activate
./autogen.sh
./configure
make
sudo make install
cd ..
HOST=`hostname`
rm -rf $2
git clone $1
cd $2
rm ikv.sh
wget https://gist.githubusercontent.com/xmppjingle/a9c3cf3c4063b05b9f6d961cdedc7697/raw/ikv.sh
chmod +x ikv.sh
./ikv.sh -m ./ejabberdctl.cfg HOSTNAME=$HOST
sudo cp *.cfg /etc/ejabberd/
sudo cp *.yml /etc/ejabberd/
sudo cp server.pem /etc/ejabberd/server.pem
sudo rm ~/.erlang.cookie
sudo echo $2 > ~/.erlang.cookie
sudo chmod 600 ~/.erlang.cookie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment