Skip to content

Commit cd96eed

Browse files
authored
Merge pull request hestiacp#1571 from hestiacp/fix/1437-issue-mysqladmin
Replace mysqladmin —version with mysql -v
2 parents ec84c8c + f2172ad commit cd96eed

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
@@ -231,8 +231,8 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
231231
service='mariadb'
232232
proc_name='mysqld'
233233
fi
234-
if [ -f /usr/bin/mysqladmin ]; then
235-
mariadb_v=`mysqladmin --version | awk 'NR==1{print $5}' | head -c 4`
234+
if [ -f /usr/bin/mysql ]; then
235+
mariadb_v=`mysql -V | awk 'NR==1{print $5}' | head -c 4`
236236
if [ $mariadb_v = "10.5" ]; then
237237
service='mariadb'
238238
proc_name='mariadbd'

0 commit comments

Comments
 (0)