Activate venv in {run,init}_sqlite

This commit is contained in:
David Hoppenbrouwers
2022-10-09 21:56:23 +02:00
parent e777813fb1
commit d7be7a1d24
3 changed files with 5 additions and 1 deletions

View File

@@ -13,7 +13,6 @@ First clone or [download the latest release](https://github.com/Demindiro/agrepe
Then setup with:
```
make
./init_sqlite.sh forum.db
```

View File

@@ -5,6 +5,9 @@ PYTHON=python3
set -e
make
. ./venv/bin/activate
if [ $# -le 0 ]
then
echo "Usage: $0 <file> [--no-admin]" >&2

View File

@@ -14,6 +14,8 @@ then
exit 1
fi
. ./venv/bin/activate
export DB="$1"
export SERVER=gunicorn
export PID="$2"