Made prepare.sh install requirements from loaded plugins

master
John Hammond 2020-05-06 20:26:24 -04:00
parent 818a4568a3
commit d29f5aaf44
1 changed files with 5 additions and 0 deletions

View File

@ -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;