mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Determining is it MySQL or MariaDB in mysql_connect() func
This commit is contained in:
parent
58c9656779
commit
6b97f7394c
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@ mysql_connect() {
|
|||
exit $E_CONNECT
|
||||
fi
|
||||
mysql_ver=$(cat $mysql_out |tail -n1 |cut -f 1 -d -)
|
||||
mysql_fork="mysql"
|
||||
check_mysql_fork=$(grep "MariaDB" $mysql_out)
|
||||
if [ ! -z "$check_mysql_fork" ]; then
|
||||
mysql_fork="mariadb"
|
||||
fi
|
||||
rm -f $mysql_out
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue