Added fallback for mysql-client when using MariaDB (#110)

* Fized mysql-client installation error with existing MariaDB server

* Fized permissions

* Changed command availability detection
This commit is contained in:
Jasper Michalke 2020-02-23 18:57:27 +01:00 committed by GitHub
parent 622c92ab2c
commit 3b295a33ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ if [[ "${NAME}" == "Ubuntu" ]]; then
fi
if [ "$installMySQL" = true ]; then
MYSQL="mysql-server mysql-client mysql-common mysql-utilities"
# Checking if (any kind of) mysql-client or compatible command installed. This is useful for existing mariadb server
elif type "mysql" > /dev/null; then
MYSQL=""
else
MYSQL="mysql-client"
fi