diff --git a/monkey_island/deb-package/DEBIAN/postinst b/monkey_island/deb-package/DEBIAN/postinst index 45664edb4..4dc1191b4 100644 --- a/monkey_island/deb-package/DEBIAN/postinst +++ b/monkey_island/deb-package/DEBIAN/postinst @@ -3,13 +3,7 @@ INSTALLATION_FOLDER=/var/monkey_island/installation # install pip requirements -if [ -r $INSTALLATION_FOLDER/pip_requirements.txt ]; then - sed -i 's^git.*/\(.*\).git^\1^' $INSTALLATION_FOLDER/pip_requirements.txt # Use only basename for remote git pips - pip install -r $INSTALLATION_FOLDER/pip_requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER/installation/ -fi +pip install -r /var/monkey_island/pip_requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER # remove installation folder -if [ -r $INSTALLATION_FOLDER ]; then - rm -rf $INSTALLATION_FOLDER - rmdir --ignore-fail-on-non-empty $INSTALLATION_FOLDER -fi +rm -rf $INSTALLATION_FOLDER