From 3b295a33ba24b8f6bf94fb050cbbfd9abf88e98f Mon Sep 17 00:00:00 2001 From: Jasper Michalke Date: Sun, 23 Feb 2020 18:57:27 +0100 Subject: [PATCH] Added fallback for mysql-client when using MariaDB (#110) * Fized mysql-client installation error with existing MariaDB server * Fized permissions * Changed command availability detection --- guac-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guac-install.sh b/guac-install.sh index 2a7be36..671f365 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -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