diff --git a/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst b/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst index ec37b07a4..f12b31b73 100644 --- a/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst +++ b/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst @@ -24,11 +24,11 @@ $PYTHON_VERSION -m venv ${PYTHON_FOLDER} # shellcheck disable=SC1090 source ${PYTHON_FOLDER}/bin/activate -echo "Installing Python dependencies using $(command -v pip)..." +echo "Installing Python dependencies using $(command -v python) and $(command -v pip)..." # First, make sure that pip is updated -${PYTHON_FOLDER}/bin/python -m pip install --upgrade pip +python -m pip install --upgrade pip # Then install the dependecies from the pre-downloaded whl and tar.gz file -${PYTHON_FOLDER}/bin/python -m pip install -r $MONKEY_FOLDER/monkey_island/requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER +python -m pip install -r $MONKEY_FOLDER/monkey_island/requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER deactivate @@ -60,4 +60,4 @@ echo "The server should be accessible soon via https://:5000/" echo "To check the Island's status, run 'sudo service monkey-island status'" echo "" -exit 0 \ No newline at end of file +exit 0