From 8a8fb79fde6a8bba0588c2e67aa9e635234a5c6f Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 25 Sep 2024 22:19:36 -0700 Subject: [PATCH] Update install.sh --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index 4907e73..805d936 100755 --- a/install.sh +++ b/install.sh @@ -59,6 +59,14 @@ if [ $venv == "y" ]; then python3 -m venv venv source venv/bin/activate + if [ -f venv/bin/activate ]; then + printf "\nVirtual environment created\n" + else + sudo apt-get install python3-venv + printf "\nVirtual environment not created please install python3-venv\n" + exit 1 + fi + # config service files for virtual environment replace="python3 mesh_bot.py|/dir/launch.sh mesh" sed -i $replace etc/mesh_bot.service