No need to qualify python since we sourced `activate`

Added which python it to the debug prints to compensate
This commit is contained in:
Shay Nehmad 2020-04-12 19:26:26 +03:00
parent 9687b22b2b
commit 592fd887b8
1 changed files with 4 additions and 4 deletions

View File

@ -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://<server_ip>:5000/"
echo "To check the Island's status, run 'sudo service monkey-island status'"
echo ""
exit 0
exit 0