From f6eb112fa9aaf53312ac6db4c863674c419c6f33 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 24 Jul 2013 13:10:33 +0200 Subject: [PATCH] run.sh: make it cwd blind --- run.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index 4629469..93b2b58 100755 --- a/run.sh +++ b/run.sh @@ -1,13 +1,14 @@ #!/bin/sh +BASE=`dirname $0` PROJECT=compte-agglo-montpellier -CTL=${PROJECT} -VENV=${PROJECT}-venv +CTL=$BASE/${PROJECT} +VENV=$BASE/${PROJECT}-venv if [ ! -n "$VIRTUAL_ENV" ]; then if [ ! -d $VENV ]; then - ./start.sh norun + $BASE/start.sh norun fi - . ./$VENV/bin/activate + . $VENV/bin/activate fi -./$CTL "${@:-runserver}" +$CTL "${@:-runserver}"