summaryrefslogtreecommitdiff
path: root/~lukeshu
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-04 22:25:03 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-04 22:25:03 -0500
commit4e95bca59f0c5b9958ffd378be9934f7dee4f98a (patch)
tree4bfceed259d075b1ed10684fef9f1c92950a84d8 /~lukeshu
parentc7cb463dc59f8a82cde1691367d7d6abd999550b (diff)
downloadabslibre-4e95bca59f0c5b9958ffd378be9934f7dee4f98a.tar.gz
abslibre-4e95bca59f0c5b9958ffd378be9934f7dee4f98a.tar.bz2
abslibre-4e95bca59f0c5b9958ffd378be9934f7dee4f98a.zip
edit parabolaweb.install to check the media/admin_media symlink
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