Commit b2eefad1 by Will Daly

Install test course in a sandbox

parent d34b5178
#!/usr/bin/env bash
###################################################
#
# install-sandbox-course.sh
#
# Install a test course in a sandbox.
# Meant to be run from within the sandbox.
#
# Usage:
#
# ./install-sandbox-course.sh
#
###################################################
cd `dirname $BASH_SOURCE` && cd ..
EDX_PLATFORM='/edx/app/edxapp/edx-platform'
COURSE_DATA='/edx/var/edxapp/data'
COURSE_TARBALL="scripts/data/test-course.tar.gz"
COURSE_ORG="ora2"
COURSE_NUM=1
COURSE_RUN=1
COURSE_ID="$COURSE_ORG/$COURSE_NUM/$COURSE_RUN"
echo "Removing old test course..."
rm -rf $COURSE_DATA/$COURSE_RUN
rm -rf $COURSE_DATA/$COURSE_NUM
echo "Done"
echo "Decompressing test course"
tar -C $COURSE_DATA -zxvf "$COURSE_TARBALL"
echo "Done"
echo "Importing test course..."
SERVICE_VARIANT=cms python $EDX_PLATFORM/manage.py cms \
import $COURSE_DATA $COURSE_RUN --settings aws
echo "Done"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment