From d29f5aaf442493d01af08db22690b3b4a4ccc2f2 Mon Sep 17 00:00:00 2001 From: John Hammond Date: Wed, 6 May 2020 20:26:24 -0400 Subject: [PATCH] Made prepare.sh install requirements from loaded plugins --- prepare.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prepare.sh b/prepare.sh index 0563149..49837c2 100755 --- a/prepare.sh +++ b/prepare.sh @@ -2,3 +2,8 @@ sudo apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential python-dev python-pip libffi-dev pip install -r requirements.txt +for d in CTFd/plugins/*; do \ + if [ -f "$d/requirements.txt" ]; then \ + pip install -r $d/requirements.txt --no-cache-dir; \ + fi; \ +done;