From 592fd887b859fe5b496359ede9cb25f53f349281 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Sun, 12 Apr 2020 19:26:26 +0300 Subject: [PATCH] No need to qualify python since we sourced `activate` Added which python it to the debug prints to compensate --- monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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