Error if getting mariadb password fails

This commit is contained in:
Bob Mottram 2017-06-23 10:58:59 +01:00
parent 76b24ec257
commit c5b469253c
1 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,10 @@ function get_mariadb_password {
fi
fi
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
if [[ "$MARIADB_PASSWORD" == *'failed'* ]]; then
echo $'Could not obtain mariadb password'
exit 835225
fi
}
function install_mariadb {