Tests for failure

This commit is contained in:
Bob Mottram 2017-11-06 14:20:56 +00:00
parent 19428773ac
commit 9a734bcd98
1 changed files with 20 additions and 0 deletions

View File

@ -203,8 +203,20 @@ function pleroma_create_database {
cd $PLEROMA_DIR
mix local.rebar --force
if [ ! "$?" = "0" ]; then
echo $'mix local.rebar failed'
exit 73528562
fi
mix ecto.create --force
if [ ! "$?" = "0" ]; then
echo $'mix ecto.create failed'
exit 83653582
fi
mix ecto.migrate --force
if [ ! "$?" = "0" ]; then
echo $'mix ecto.migrate failed'
exit 73752573
fi
}
function reconfigure_pleroma {
@ -638,7 +650,15 @@ function install_pleroma {
# back end
cd $PLEROMA_DIR
mix local.hex --force
if [ ! "$?" = "0" ]; then
echo $'mix local.hex failed'
exit 1745673
fi
mix deps.get --force
if [ ! "$?" = "0" ]; then
echo $'mix deps.get failed'
exit 7325733
fi
function_check pleroma_create_database
pleroma_create_database