From dd0e98154392e3f1f79b807c48621542968b7682 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Thu, 3 Jun 2021 08:58:16 +0100 Subject: [PATCH] Remove leading period from venv dir --- borgweb/setup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/borgweb/setup.sh b/borgweb/setup.sh index 5627b49..9566d4f 100644 --- a/borgweb/setup.sh +++ b/borgweb/setup.sh @@ -17,18 +17,18 @@ cd "${0%/*}" print_action "Checking for existence of python venv" -if ! source ./.venv/bin/activate; then +if ! source ./venv/bin/activate; then printf "No venv activation script\n" - if [ -d "./.venv" ] + if [ -d "./venv" ] then printf "Removing old venv\n" - rm -r ./.venv + rm -r ./venv fi printf "Creating new venv\n" - # Create venv at ./.venv - virtualenv ./.venv --prompt "(borg-web) " - source ./.venv/bin/activate + # Create venv at ./venv + virtualenv ./venv --prompt "(borg-web) " + source ./venv/bin/activate fi print_action "Installing pip packages, this may take a while..."