Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Check for virtualenv bin/activate file
Browse files Browse the repository at this point in the history
Instead of virtualenv directory. See
alphagov/pp-development#44
  • Loading branch information
Paul M Furley committed Mar 5, 2014
1 parent f449e7f commit 9d6b938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion start-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9d6b938

Please sign in to comment.