summaryrefslogtreecommitdiff
path: root/~lukeshu
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-05 23:15:23 +0000
committerroot <root@rshg054.dnsready.net>2011-12-05 23:15:23 +0000
commit55d1e19e71b453a0f47c599f281a2ad2644247d2 (patch)
treee4988a18e52a5f283c69611807002a1a20c918ed /~lukeshu
parent392d2d86b3657d90c3954a44dd6e3e5a4d12d455 (diff)
Mon Dec 5 23:15:23 UTC 2011
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