From 65e7cfcd450de687f79b2cb2655268d3eb4c65b5 Mon Sep 17 00:00:00 2001 From: b068931cc450442b63f5b3d276ea4297 <77171083+b068931cc450442b63f5b3d276ea4297@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:11:25 +0100 Subject: [PATCH] install python3-venv if necessary --- install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index ca1eaff..036dd01 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,4 @@ #!/bin/bash - CURRENT_USER="${SUDO_USER}" SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )" HOST="$( hostname )" @@ -80,7 +79,6 @@ generate_certificate() { create_services() { # Create services to launch the two servers. - echo -e "\e[39m[+] Creating services\e[39m" echo -e "\e[92m [✔] Creating frontend service\e[39m" @@ -140,7 +138,6 @@ EOL systemctl start spyguard-backend } - change_hostname() { # Changing the hostname to spyguard echo -e "[+] Changing the hostname to spyguard" @@ -184,7 +181,8 @@ check_dependencies() { install_package ${bin##*/} fi done - echo -e "\e[39m[+] Create and activate Virtual Environment for Python packages\e[39m" + echo -e "\e[39m[+] Install and prepare Virtual Environment for Python packages\e[39m" + apt install python3-venv python3 -m venv /usr/share/spyguard/spyguard-venv source /usr/share/spyguard/spyguard-venv/bin/activate echo -e "\e[39m[+] Install Python packages...\e[39m"