From 870fa1981caf6df3441980b1fa3091dd8b70c232 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 2 Apr 2019 09:50:52 +0200 Subject: [PATCH] fix: [update_thirdparty] detect and use virtualenv --- var/www/update_thirdparty.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/var/www/update_thirdparty.sh b/var/www/update_thirdparty.sh index 258fa7ca..317de4e4 100755 --- a/var/www/update_thirdparty.sh +++ b/var/www/update_thirdparty.sh @@ -83,8 +83,12 @@ pushd static/image wget https://www.circl.lu/assets/images/logos/AIL.png -O AIL.png popd -#active virtualenv -source ./../../AILENV/bin/activate +if ! [[ -n "$AIL_HOME" ]] +then + #active virtualenv + source ./../../AILENV/bin/activate +fi + #Update MISP Taxonomies and Galaxies python3 -m pip install git+https://github.com/MISP/PyTaxonomies --upgrade python3 -m pip install git+https://github.com/MISP/PyMISPGalaxies --upgrade