init.sh 733 Bytes
Newer Older
1 2 3
#! /bin/sh

# download and create links to required django apps
4 5 6 7
if [ -d django-panik-emissions ]
then
	(cd django-panik-emissions && git pull --rebase)
else
8 9
	git clone http://git.domainepublic.net/git/django-panik-emissions.git
	ln -s django-panik-emissions/emissions
10
fi
11

12 13 14 15
if [ -d django-panik-newsletter ]
then
	(cd django-panik-newsletter && git pull --rebase)
else
16 17
	git clone http://git.domainepublic.net/git/django-panik-newsletter.git
	ln -s django-panik-newsletter/newsletter
18
fi
19 20

# create virtual env
21 22 23 24
test -d venv || virtualenv --system-site-packages venv/

# create media uploads directory for ckeditor
test -d media/uploads || mkdir -p media/uploads
25 26 27

# install required dependencies
./venv/bin/pip install -r requirements.txt