Skip to content

Commit ee5efa7

Browse files
authored
More compatible checker for all future mariadb versions (hestiacp#4207)
* More compatible checker for all future mariadb versions * Update v-list-sys-services
1 parent 4ad4d16 commit ee5efa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-list-sys-services

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ if [ -n "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
263263
if [ -f $mysql ]; then
264264
mariadb_v=$($mysql -V | awk 'NR==1{print $5}')
265265
if [[ $mariadb_v =~ $mariadb_string ]]; then
266-
mariadb_v=$(echo $mariadb_v | cut -f2 -d'.')
267-
if [ $mariadb_v -le "4" ]; then
266+
mariadb_v=$(echo $mariadb_v | awk -F "." '{ print $1 $2 }')
267+
if [ $mariadb_v -le "104" ]; then
268268
service='mariadb'
269269
proc_name='mysqld'
270270
fi

0 commit comments

Comments
 (0)