summaryrefslogtreecommitdiff
path: root/setup.sh
blob: dfa82dd577f17ccd479f43a65dfebc124ae203bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -eux

BLOGNAME=unixster

virtualenv --no-site-packages $BLOGNAME-env
cd $BLOGNAME-env
./bin/pip install django==1.8.4
./bin/django-admin startproject $BLOGNAME
./bin/pip install django-blog-zinnia
cp ../source/settings.py ./$BLOGNAME/$BLOGNAME/settings.py
cp ../source/urls.py ./$BLOGNAME/$BLOGNAME/urls.py
cd $BLOGNAME
../bin/python manage.py syncdb
cd ../..
sed -i "s/BLOGNAME=$/BLOGNAME=$BLOGNAME/g" start.sh
cp source/zinnia/* $BLOGNAME-env/lib/python2.7/site-packages/zinnia/templates/zinnia/
echo "Setup complete."