summaryrefslogtreecommitdiff
path: root/parabolaweb-update
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-15 01:42:27 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-15 01:42:27 -0500
commit319b45b070d5380f10a386f8eaa08214d6ad7aa7 (patch)
treeb2f14c2695d915679e2f94b2663fae0eb14d73b1 /parabolaweb-update
parent790698d078b8ee3c29ffd1a326e6bacefba4819f (diff)
improve libre/parabolaweb-utils
Diffstat (limited to 'parabolaweb-update')
-rw-r--r--parabolaweb-update9
1 files changed, 5 insertions, 4 deletions
diff --git a/parabolaweb-update b/parabolaweb-update
index 1789176..2da9eea 100644
--- a/parabolaweb-update
+++ b/parabolaweb-update
@@ -18,7 +18,7 @@ clean() {
cd "$WEBDIR"
msg "Purging old .pyc files..."
find . -name '*.pyc' -delete
- msg "Purging GNU Make generated files..."
+ msg "Purging old GNU Make generated files..."
for dir in `find_makefiles`; do
make -C "$WEBDIR/$dir" clean
done
@@ -50,7 +50,7 @@ update-database() {
msg2 "Running migrations..."
./manage.py migrate
if [[ -f devel/management/commands/update_types_permissions.py ]]; then
- msg2 "Updating permission..."
+ msg2 "Updating permissions..."
./manage.py update_types_permissions
fi
msg2 "Loading fixtures..."
@@ -74,10 +74,11 @@ main() {
exit 1
fi
+ if [[ -d "$WEBDIR" ]]; then
+ clean
+ fi
parabolaweb-download
- clean
configure
- clean
update-database
update-filesystem
}