evolinux-base: backup-server-state release 22.03.2
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Jérémy Lecour 2022-03-21 11:32:08 +01:00 committed by Jérémy Lecour
parent 444bd72944
commit e7594c6c86
2 changed files with 14 additions and 9 deletions

View file

@ -15,7 +15,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
* evocheck: upstream release 22.03
* evolinux-base: backup-server-state release 22.03.2
* evolinux-base: backup-server-state release 22.03.3
* evolinux-base: Add non-free repos & install non-free firmware on dedicated hardware
* generate-ldif: Add services check for bkctld
* minifirewall: upstream release 22.03.2 and use includes directory

View file

@ -2,7 +2,7 @@
PROGNAME="backup-server-state"
VERSION="22.03.2"
VERSION="22.03.3"
readonly VERSION
backup_dir=
@ -667,15 +667,20 @@ backup_mysql_processes() {
mysqladmin_bin=$(command -v mysqladmin)
if [ -n "${mysqladmin_bin}" ]; then
last_result=$(${mysqladmin_bin} --verbose processlist > "${backup_dir}/mysql-processlist.txt")
last_rc=$?
# Look for local MySQL or MariaDB process
if pgrep mysqld > /dev/null || pgrep mariadbd > /dev/null; then
last_result=$(${mysqladmin_bin} --verbose processlist > "${backup_dir}/mysql-processlist.txt")
last_rc=$?
if [ ${last_rc} -eq 0 ]; then
debug "* mysqladmin OK"
if [ ${last_rc} -eq 0 ]; then
debug "* mysqladmin OK"
else
debug "* mysqladmin ERROR"
debug "${last_result}"
rc=10
fi
else
debug "* mysqladmin ERROR"
debug "${last_result}"
rc=10
debug "* no mysqld or mariadbd process is running"
fi
else
debug "* mysqladmin not found"