more fixes to deb

This commit is contained in:
Itay Mizeretz 2018-06-13 20:48:04 +03:00
parent 79d8012bb2
commit ddaeb7dbf8
2 changed files with 3 additions and 3 deletions

View File

@ -5,11 +5,11 @@ INSTALLATION_FOLDER=/var/monkey/installation
PYTHON_FOLDER=/var/monkey/monkey_island/bin/python PYTHON_FOLDER=/var/monkey/monkey_island/bin/python
# Prepare python virtualenv # Prepare python virtualenv
pip2 install virtualenv --no-index --find-links file://$INSTALLATION_FOLDER pip2 download --exists-action i virtualenv -d $INSTALLATION_FOLDER
virtualenv -p python2.7 ${PYTHON_FOLDER} virtualenv -p python2.7 ${PYTHON_FOLDER}
# install pip requirements # install pip requirements
${PYTHON_FOLDER}/bin/python -m pip install -r $MONKEY_FOLDER/monkey_island/pip_requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER ${PYTHON_FOLDER}/bin/python -m pip download --exists-action i -r $MONKEY_FOLDER/monkey_island/pip_requirements.txt -d $INSTALLATION_FOLDER
# remove installation folder and unnecessary files # remove installation folder and unnecessary files
rm -rf ${INSTALLATION_FOLDER} rm -rf ${INSTALLATION_FOLDER}

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
cd /var/monkey cd /var/monkey
/var/monkey/monkey_island/bin/python/bin/python monkey_island/cc/main.py /var/monkey/monkey_island/bin/python/bin/python monkey_island.py