summaryrefslogtreecommitdiff
path: root/libre/parabolaweb-git/parabolaweb.update.sh.in
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2012-10-21 19:51:39 -0200
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2012-10-21 19:51:39 -0200
commitee7f9096475e0ea57d9326d087f94e3df4c6512b (patch)
tree0e9b42a4cb590b3c59632a91b519e0bacac38bd3 /libre/parabolaweb-git/parabolaweb.update.sh.in
parentb4ce63a23bfc79192dfc546c4196ec651dd31393 (diff)
parentb09b1d60e80ef66c0817fcc7466a20ec5a365520 (diff)
downloadabslibre-ee7f9096475e0ea57d9326d087f94e3df4c6512b.tar.gz
abslibre-ee7f9096475e0ea57d9326d087f94e3df4c6512b.tar.bz2
abslibre-ee7f9096475e0ea57d9326d087f94e3df4c6512b.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/parabolaweb-git/parabolaweb.update.sh.in')
-rwxr-xr-xlibre/parabolaweb-git/parabolaweb.update.sh.in59
1 files changed, 0 insertions, 59 deletions
diff --git a/libre/parabolaweb-git/parabolaweb.update.sh.in b/libre/parabolaweb-git/parabolaweb.update.sh.in
deleted file mode 100755
index 8c3aef0f0..000000000
--- a/libre/parabolaweb-git/parabolaweb.update.sh.in
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-set -e
-
-_install_dir=@INSTALL_DIR@
-_gitname=@GIT_NAME@
-
-_gitroot=@GITROOT@
-_gitbranch=@GITBRANCH@
-
-. /usr/bin/libremessages
-
-if [ ! -d "$_install_dir" ]; then
- mkdir "$_install_dir"
-fi
-cd "$_install_dir"
-
-msg "Connecting to GIT server...."
-if [ -d ${_gitname} ] ; then
- msg2 "Updating existing tree"
- cd ${_gitname} && git pull ${_gitroot}
-else
- msg2 "Cloning tree"
- git clone ${_gitroot} ${_gitname}
- cd ${_gitname}
-fi
-git checkout ${_gitbranch}
-msg "GIT checkout done or server timeout"
-
-msg "Purging old .pyc files...."
-find . -name '*.pyc' -delete
-
-msg "Checking configuration...."
-if [ ! -f local_settings.py ]; then
- cp local_settings.py.example local_settings.tmp.$$.py
- if ${EDITOR:-xdg-open} local_settings.tmp.$$.py; then
- mv local_settings.tmp.$$.py local_settings.py
- else
- rm local_settings.tmp.$$.py
- msg "Failed to configure, exiting"
- exit 1
- fi
- msg "Creating database...."
- ./manage.py syncdb
-fi
-
-msg "Purging old .pyc files...."
-find . -name '*.pyc' -delete
-
-msg "Updating database...."
-msg2 "Running migrations...."
-./manage.py migrate
-msg2 "Loading fixtures...."
-./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