Enabling MISP new pub/sub feature (ZeroMQ)

pull/4/head
Cédric Bonhomme 2017-07-06 11:09:25 +02:00
parent d49197a313
commit a21dab32a2
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
2 changed files with 30 additions and 1 deletions

View File

@ -7,8 +7,8 @@ TODO:
* check the GPG key generation and the generation of the SSL certificate;
* check the configuration of postfix;
* configure redis connection;
* make the background workers start on boot;
* apache.24.misp.ssl seems to be missing;
* provide more options through variables (for the gpg keys, etc.).

View File

@ -270,6 +270,35 @@ gpg --homedir $PATH_TO_MISP/.gnupg --export --armor $EMAIL_ADDRESS > $PATH_TO_MI
# To make the background workers start on boot
# !!! TODO
echo -e "\n--- Enabling MISP new pub/sub feature (ZeroMQ)... ---\n"
# ZeroMQ depends on the Python client for Redis
pip install redis > /dev/null 2>&1
## Install ZeroMQ and prerequisites
apt-get install -y pkg-config > /dev/null 2>&1
cd /usr/local/src/
git clone git://github.com/jedisct1/libsodium.git > /dev/null 2>&1
cd libsodium
/autogen.sh > /dev/null 2>&1
./configure > /dev/null 2>&1
make check > /dev/null 2>&1
make > /dev/null 2>&1
make install > /dev/null 2>&1
ldconfig > /dev/null 2>&1
cd /usr/local/src/
wget https://archive.org/download/zeromq_4.1.5/zeromq-4.1.5.tar.gz > /dev/null 2>&1
tar -xvf zeromq-4.1.5.tar.gz > /dev/null 2>&1
cd zeromq-4.1.5/
./autogen.sh > /dev/null 2>&1
./configure > /dev/null 2>&1
make check > /dev/null 2>&1
make > /dev/null 2>&1
make install > /dev/null 2>&1
ldconfig > /dev/null 2>&1
## install pyzmq
pip install pyzmq > /dev/null 2>&1
echo -e "\n--- Restarting Apache ---\n"
systemctl restart apache2 > /dev/null 2>&1