Merge pull request #15 from jbarlow-mcafee/pip2-pyzmq-redis-install

Ensure pyzmq and redis also installed with pip2 for Python 2

Thanks to @jbarlow-mcafee for discovering this and proposing a fix!
pull/4/head
Ventz Petkov 2018-04-10 16:36:40 -04:00 committed by GitHub
commit e2300e0163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -119,9 +119,12 @@ RUN sed -i -e 's/db login/misp/g' /var/www/MISP/app/Config/database.php ; \
sed -i -e "s/email@address.com/${MISP_EMAIL}/" /var/www/MISP/app/Config/config.php ; \ sed -i -e "s/email@address.com/${MISP_EMAIL}/" /var/www/MISP/app/Config/config.php ; \
sudo chown -R www-data:www-data /var/www/MISP/app/Config ; \ sudo chown -R www-data:www-data /var/www/MISP/app/Config ; \
sudo chmod -R 750 /var/www/MISP/app/Config ; \ sudo chmod -R 750 /var/www/MISP/app/Config ; \
sudo pip install --upgrade pip ; \ sudo pip2 install --upgrade pip ; \
sudo pip install pyzmq ; \ sudo pip2 install pyzmq ; \
sudo pip install redis ; \ sudo pip2 install redis ; \
sudo pip3 install --upgrade pip ; \
sudo pip3 install pyzmq ; \
sudo pip3 install redis ; \
sudo -u www-data -H wget http://downloads.sourceforge.net/project/ssdeep/ssdeep-2.13/ssdeep-2.13.tar.gz ; \ sudo -u www-data -H wget http://downloads.sourceforge.net/project/ssdeep/ssdeep-2.13/ssdeep-2.13.tar.gz ; \
tar zxvf ssdeep-2.13.tar.gz && cd ssdeep-2.13 && ./configure && make && sudo make install ; \ tar zxvf ssdeep-2.13.tar.gz && cd ssdeep-2.13 && ./configure && make && sudo make install ; \
sudo pecl install ssdeep ; \ sudo pecl install ssdeep ; \