summaryrefslogtreecommitdiff
path: root/parabolaweb-update
diff options
context:
space:
mode:
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
}