From a23317ecdf21f4ba5ff3b56296cfcb485b0a1e4f Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Sun, 13 Aug 2017 17:13:39 +0300 Subject: [PATCH] Fix deb package requirement --- monkey_island/deb-package/DEBIAN/postinst | 4 ++++ monkey_island/deb-package/monkey_island_pip_requirements.txt | 1 - monkey_island/requirements.txt | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/monkey_island/deb-package/DEBIAN/postinst b/monkey_island/deb-package/DEBIAN/postinst index f30767760..3b9ba92ff 100644 --- a/monkey_island/deb-package/DEBIAN/postinst +++ b/monkey_island/deb-package/DEBIAN/postinst @@ -6,9 +6,13 @@ INSTALLATION_FOLDER=/var/monkey_island/installation cp -f ${MONKEY_FOLDER}/monkey.sh /usr/bin/monkey chmod 755 /usr/bin/monkey +# Fix dependency bug +pip uninstall -y bson + # install pip requirements pip install -r $MONKEY_FOLDER/pip_requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER + # remove installation folder and unnecessary files rm -rf ${INSTALLATION_FOLDER} rm -f ${MONKEY_FOLDER}/pip_requirements.txt diff --git a/monkey_island/deb-package/monkey_island_pip_requirements.txt b/monkey_island/deb-package/monkey_island_pip_requirements.txt index 149f8667f..ee11b691f 100644 --- a/monkey_island/deb-package/monkey_island_pip_requirements.txt +++ b/monkey_island/deb-package/monkey_island_pip_requirements.txt @@ -5,7 +5,6 @@ jinja2 markupsafe itsdangerous click -bson flask Flask-Pymongo Flask-Restful \ No newline at end of file diff --git a/monkey_island/requirements.txt b/monkey_island/requirements.txt index 149f8667f..ee11b691f 100644 --- a/monkey_island/requirements.txt +++ b/monkey_island/requirements.txt @@ -5,7 +5,6 @@ jinja2 markupsafe itsdangerous click -bson flask Flask-Pymongo Flask-Restful \ No newline at end of file