Skip to content

Commit

Permalink
No need to qualify python since we sourced activate
Browse files Browse the repository at this point in the history
Added which python it to the debug prints to compensate
  • Loading branch information
ShayNehmad committed Apr 12, 2020
1 parent 9687b22 commit 592fd88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 592fd88

Please sign in to comment.