From 9d6b9389d694347010abec65f09293e14a6901f2 Mon Sep 17 00:00:00 2001 From: Paul M Furley Date: Wed, 5 Mar 2014 16:22:18 +0000 Subject: [PATCH] Check for virtualenv bin/activate file Instead of virtualenv directory. See https://github.com/alphagov/pp-development/issues/44 --- start-app.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start-app.sh b/start-app.sh index 46c8873c..30acfecc 100755 --- a/start-app.sh +++ b/start-app.sh @@ -14,7 +14,8 @@ until mkdir $LOCK_DIR > /dev/null 2>&1; do sleep 1 done -if [ ! -d "${VENV_DIR}" ]; then +if [ ! -f "${VENV_DIR}/bin/activate" ]; then + mkdir -p "${VENV_DIR}" virtualenv --no-site-packages "$VENV_DIR" fi