diff options
Diffstat (limited to 'libre/parabolaweb-utils/parabolaweb-update')
-rw-r--r-- | libre/parabolaweb-utils/parabolaweb-update | 9 |
1 files changed, 5 insertions, 4 deletions
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 } |