summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Hallin <kristofer@sunet.se>2021-12-17 10:18:08 +0100
committerKristofer Hallin <kristofer@sunet.se>2021-12-17 10:18:08 +0100
commit41aed82fafc6aea842cfb6203a3994d6c4a9d8db (patch)
tree913ee5ed9d59fd0a245a67b6eb872bd7e14c25c7
parente1fe3943dcbc60da8cae733a6e66d385a35d5ffa (diff)
Remove the existing venv. We should create our own.
-rwxr-xr-xdocker/collector/setup.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/collector/setup.sh b/docker/collector/setup.sh
index 65bf175..fce6b42 100755
--- a/docker/collector/setup.sh
+++ b/docker/collector/setup.sh
@@ -6,6 +6,11 @@ if [ ! -d /opt/certs/ ]; then
fi
cd /opt/collector/
+
+if [ -d /opt/collector/venv/ ]; then
+ rm -rf /opt/collector/venv/
+fi
+
virtualenv venv
. venv/bin/activate
pip3 install -r requirements.txt