From 840d0b16f09292cb6d7fd6e5fac3d938da1945eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robotka=20Adri=C3=A1n?= <robotka@sch.bme.hu>
Date: Sat, 27 Mar 2021 19:03:55 +0000
Subject: [PATCH] Update bootstrap.sh

---
 playbook-template/bootstrap.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/playbook-template/bootstrap.sh b/playbook-template/bootstrap.sh
index dfbe7b5..4dcf457 100755
--- a/playbook-template/bootstrap.sh
+++ b/playbook-template/bootstrap.sh
@@ -8,7 +8,7 @@ echo ansible > requirements.python.txt
 if ! command -v virtualenv &>/dev/null; then
   echo "This command needs virtualenv to run."
   echo "Install it like this:"
-  printf "\tapt install python3-virtualenv\n"
+  printf "\tapt install python3-venv\n"
   printf "\tOR pip3 install --user virtualenv\n"
   printf "\texport PATH=\"~/.local/bin:\$PATH\"\n"
   exit 1
@@ -17,7 +17,7 @@ fi
 # if not in virtualenv
 if [[ "$VIRTUAL_ENV" == "" ]]; then
   # create virtualenv if not present
-  [[ ! -d .venv ]] && virtualenv .venv
+  [[ ! -d .venv ]] && python3 -m venv .venv
 
   source .venv/bin/activate
   pip install -r requirements.python.txt
-- 
GitLab