authentic/run.sh

13 lines
194 B
Bash
Raw Normal View History

2013-06-26 09:50:21 +02:00
#!/bin/sh
2013-07-15 18:19:19 +02:00
BASE=`dirname $0`
2013-06-26 09:50:21 +02:00
PROJECT=authentic2
2013-07-15 18:19:19 +02:00
CTL=$BASE/${PROJECT}-ctl
VENV=$BASE/${PROJECT}-venv
2013-06-26 09:50:21 +02:00
if [ ! -d $VENV ]; then
2013-07-15 18:19:19 +02:00
$BASE/start.sh
2013-06-26 09:50:21 +02:00
else
2013-07-15 18:19:19 +02:00
. $VENV/bin/activate
$CTL "${@:-runserver}"
2013-06-26 09:50:21 +02:00
fi