mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
Switch to command -v for mysql executable check
* Switch to `command -v` for mysql executable check * Add the same check to Debian
This commit is contained in:
parent
621ebc6d32
commit
87a119e372
@ -200,7 +200,7 @@ if [[ "${NAME}" == "Ubuntu" ]]; then
|
|||||||
if [ "$installMySQL" = true ]; then
|
if [ "$installMySQL" = true ]; then
|
||||||
MYSQL="mysql-server mysql-client mysql-common mysql-utilities"
|
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
|
# Checking if (any kind of) mysql-client or compatible command installed. This is useful for existing mariadb server
|
||||||
elif type "mysql" > /dev/null; then
|
elif [ -x "$(command -v mysql)" ]; then
|
||||||
MYSQL=""
|
MYSQL=""
|
||||||
else
|
else
|
||||||
MYSQL="mysql-client"
|
MYSQL="mysql-client"
|
||||||
@ -214,6 +214,9 @@ elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]];
|
|||||||
fi
|
fi
|
||||||
if [ "$installMySQL" = true ]; then
|
if [ "$installMySQL" = true ]; then
|
||||||
MYSQL="default-mysql-server default-mysql-client mysql-common"
|
MYSQL="default-mysql-server default-mysql-client mysql-common"
|
||||||
|
# Checking if (any kind of) mysql-client or compatible command installed. This is useful for existing mariadb server
|
||||||
|
elif [ -x "$(command -v mysql)" ]; then
|
||||||
|
MYSQL=""
|
||||||
else
|
else
|
||||||
MYSQL="default-mysql-client"
|
MYSQL="default-mysql-client"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user