Show more meaningful error message if db deployment fails when "mysql" is missing from PATH.

This commit is contained in:
David Noland 2011-03-24 12:26:37 -07:00
parent 954dacdbda
commit 978a9c7df4

View File

@ -51,6 +51,9 @@ if [ $mysqlout -eq 1 ]; then
printf "Error: Cannot execute create-database.sql\n"
exit 10
fi
elif [ $mysqlout -eq 127 ]; then
printf "Error: Cannot execute create-database.sql - mysql command not found.\n"
exit 11
elif [ $mysqlout -ne 0 ]; then
printf "Error: Cannot execute create-database.sql\n"
exit 11