From b1c72d09dd64bffc2fa820bf0927623efc8a394f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 15 Nov 2012 01:42:27 -0500 Subject: improve libre/parabolaweb-utils --- libre/parabolaweb-utils/parabolaweb-update | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libre/parabolaweb-utils/parabolaweb-update') diff --git a/libre/parabolaweb-utils/parabolaweb-update b/libre/parabolaweb-utils/parabolaweb-update index 178917673..2da9eea8a 100644 --- a/libre/parabolaweb-utils/parabolaweb-update +++ b/libre/parabolaweb-utils/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 } -- cgit v1.2.3-54-g00ecf