From e5f4092476a9788d854f77905b6bfbfce638f899 Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Sun, 6 May 2018 15:19:28 +0100 Subject: [PATCH] Nai --- dev/run-internal.sh | 3 +-- scripts/update-courses.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dev/run-internal.sh b/dev/run-internal.sh index 2cb3732..6298c11 100755 --- a/dev/run-internal.sh +++ b/dev/run-internal.sh @@ -42,8 +42,7 @@ if [[ ! -e $V ]] ; then cd /data/src sed -i "s/'generated_exercises',/#'generated_exercises',/" main/settings.py python3 ./manage.py migrate - sed -i "s/#'generated_exercises',/'generated_exercises',/" main/settings.py - echo yes | python3 ./manage.py collectstatic + sed -i "s/#'generated_exercises',/'generated_exercises',/" main/settings.py mkdir /data/run/jobs/ chown www-data /data/run/jobs/ diff --git a/scripts/update-courses.sh b/scripts/update-courses.sh index cec5292..252e8c0 100755 --- a/scripts/update-courses.sh +++ b/scripts/update-courses.sh @@ -7,4 +7,4 @@ export GENERATED_PATH=/data/run/oer export OER_SRC_DIR=/data/oer export PLATFORM_PATH=/data/src python3 ./manage.py import-courses --sources=/data/oer/courses --formats=/data/oer/exercise-formats/ -python3 ./manage.py collectstatic +echo yes | python3 ./manage.py collectstatic