From d7be7a1d24a79b3973094e084721e90dc99127f8 Mon Sep 17 00:00:00 2001 From: David Hoppenbrouwers Date: Sun, 9 Oct 2022 21:56:23 +0200 Subject: [PATCH] Activate venv in {run,init}_sqlite --- README.md | 1 - init_sqlite.sh | 3 +++ run_sqlite.sh | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df58be1..0f7bd73 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/init_sqlite.sh b/init_sqlite.sh index 21a8dcc..4ee3f6b 100755 --- a/init_sqlite.sh +++ b/init_sqlite.sh @@ -5,6 +5,9 @@ PYTHON=python3 set -e +make +. ./venv/bin/activate + if [ $# -le 0 ] then echo "Usage: $0 [--no-admin]" >&2 diff --git a/run_sqlite.sh b/run_sqlite.sh index 34cce80..d1b5c79 100755 --- a/run_sqlite.sh +++ b/run_sqlite.sh @@ -14,6 +14,8 @@ then exit 1 fi +. ./venv/bin/activate + export DB="$1" export SERVER=gunicorn export PID="$2"