summaryrefslogtreecommitdiff
path: root/~lukeshu
diff options
context:
space:
mode:
Diffstat (limited to '~lukeshu')
-rw-r--r--~lukeshu/parabolaweb-git/parabolaweb.install12
1 files changed, 9 insertions, 3 deletions
diff --git a/~lukeshu/parabolaweb-git/parabolaweb.install b/~lukeshu/parabolaweb-git/parabolaweb.install
index 0eaaf84c9..53374ccc3 100644
--- a/~lukeshu/parabolaweb-git/parabolaweb.install
+++ b/~lukeshu/parabolaweb-git/parabolaweb.install
@@ -17,7 +17,6 @@ _main() {
cd "$_install_dir"
msg "Connecting to GIT server...."
-
if [ -d ${_gitname} ] ; then
cd ${_gitname}
git pull ${_gitroot}
@@ -27,11 +26,9 @@ _main() {
cd ${_gitname}
fi
git checkout ${_gitbranch}
-
msg "GIT checkout done or server timeout"
msg "Checking configuration...."
-
if [ ! -f local_settings.py ]; then
cp local_settings.py.example local_settings.py.tmp
$EDITOR local_settings.py.tmp
@@ -40,9 +37,18 @@ _main() {
./manage.py syncdb
fi
+ msg "Purging old .pyc files...."
find . -name '*.pyc' -delete
+
+ msg "Updating database...."
./manage.py migrate
./manage.py loaddata */fixtures/*.json
+
+ msg "Checking media/admin_media symlink...."
+ if [ ! -e media/admin-media ]; then
+ rm media/admin_media
+ ln -s /usr/lib/python2.7/site-packages/django/contrib/admin/media media/admin_media
+ fi
}
# arg 1: the new package version