From bf742d118a8c67114a170fd142e670c09f34920f Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sun, 3 Apr 2016 06:22:41 +0200 Subject: FIXME: Improve reporting and error detection. set -e makes the shell error out whenever an unguarded command reports a failure, instead of blindly executing everything in turn. set -x ensures one knows which commands are being run/attempted. XXX: At least in v0.9, two commands are failing, hence the two occurrences of "|| true". --- install/install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/install.sh b/install/install.sh index 42d337c0d..a1829940d 100755 --- a/install/install.sh +++ b/install/install.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e +set -x + ###################################################################### # Minimum configuration # ###################################################################### @@ -201,8 +204,8 @@ echo "* sync database" cd $APP_DIR python ./manage.py syncdb --noinput 2> /dev/null > /dev/null python ./manage.py migrate ishtar_common 2> /dev/null > /dev/null -python ./manage.py migrate archaeological_files 0013 2> /dev/null > /dev/null -python ./manage.py migrate archaeological_operations 2> /dev/null > /dev/null +python ./manage.py migrate archaeological_files 0013 2> /dev/null > /dev/null || true +python ./manage.py migrate archaeological_operations 2> /dev/null > /dev/null || true python ./manage.py migrate archaeological_files 2> /dev/null > /dev/null python ./manage.py migrate 2> /dev/null > /dev/null -- cgit v1.2.3