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