File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 221221# Checking DB system
222222if [ ! -z " $DB_SYSTEM " ] && [ " $DB_SYSTEM " != ' remote' ]; then
223223 for db in ${DB_SYSTEM// ,/ } ; do
224- proc_name=' '
225224 service=" $db "
225+ proc_name=' '
226226 if [ " $service " = ' mysql' ]; then
227+ if [ -e " /lib/systemd/system/mariadb.service" ]; then
228+ service=' mariadb'
229+ proc_name=' mysqld'
230+ fi
231+ if [ -f /usr/bin/mysqladmin ]; then
232+ mariadb_v=` mysqladmin --version | awk ' NR==1{print $5}' | head -c 4`
233+ if [ $mariadb_v = " 10.5" ]; then
234+ service=' mariadb'
235+ proc_name=' mariadbd'
236+ fi
237+ fi
227238 if [ -d " /etc/sysconfig" ]; then
228239 service=' mysqld'
229240 proc_name=' mysqld'
230241 fi
231- if [ -e " /usr/lib/systemd/system/mariadb.service" ]; then
232- service=' mariadb'
233- fi
234242 fi
235243 if [ " $service " == ' pgsql' ]; then
236244 service=' postgresql'
You can’t perform that action at this time.
0 commit comments