Commit a7afd2ea authored by fred's avatar fred

update init.sh so it can be run multiple times

parent eb225dd4
#! /bin/sh
# download and create links to required django apps
git clone ssh://gitolite@git.domainepublic.net/django-panik-emissions
git clone ssh://gitolite@git.domainepublic.net/django-panik-newsletter
if [ -d django-panik-emissions ]
then
(cd django-panik-emissions && git pull --rebase)
else
git clone ssh://gitolite@git.domainepublic.net/django-panik-emissions
ln -s django-panik-emissions/panikdb/emissions
fi
ln -s django-panik-emissions/panikdb/emissions
ln -s django-panik-newsletter/panik/panik/newsletter
if [ -d django-panik-newsletter ]
then
(cd django-panik-newsletter && git pull --rebase)
else
git clone ssh://gitolite@git.domainepublic.net/django-panik-newsletter
ln -s django-panik-newsletter/panik/panik/newsletter
fi
# create virtual env
virtualenv --system-site-packages venv/
test -d venv || virtualenv --system-site-packages venv/
# create media uploads directory for ckeditor
test -d media/uploads || mkdir -p media/uploads
# install required dependencies
./venv/bin/pip install -r requirements.txt
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