Also check for successful mysql installation

This commit is contained in:
Bob Mottram 2016-12-01 11:31:26 +00:00
parent b94090b85e
commit a9756f6baf
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,11 @@ function install_mariadb {
exit 54
fi
if [ ! -f /usr/bin/mysql ]; then
echo $"ERROR: mariadb-server does not appear to have installed. $CHECK_MESSAGE"
exit 34672
fi
mysqladmin -u root password "$MARIADB_PASSWORD"
mark_completed $FUNCNAME
}