Commit 817491cc by Joel Barciauskas Committed by Joel Barciauskas

Exit provisioning scripts on any error

parent 3fe7d59d
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
# #
# This will load the edxapp database from a file named exapp.sql. # This will load the edxapp database from a file named exapp.sql.
set -e
set -o pipefail
if [ -z "$1" ] if [ -z "$1" ]
then then
echo "You must supply a database name!" echo "You must supply a database name!"
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
# 4. Static assets compiled/collected. # 4. Static assets compiled/collected.
set -e
set -o pipefail
RED='\033[0;31m' RED='\033[0;31m'
GREEN='\033[0;32m' GREEN='\033[0;32m'
YELLOW='\033[0;33m' YELLOW='\033[0;33m'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment