Segfault in mariabackup should now be fixed on Alpine >= 3.22

This commit is contained in:
Faustin Lammler 2025-08-26 14:02:49 +02:00
parent 6d6465ad31
commit 512440fdd7
No known key found for this signature in database
GPG Key ID: 390A2F27832A5C79
1 changed files with 6 additions and 1 deletions

View File

@ -142,6 +142,12 @@
- name: Check if backup is working (mariadb-backup)
ansible.builtin.shell: |
# segfault before 3.22 on Alpine Linux, Ansible facts comparison are not
# powerful enough so "when" is not used here
source /etc/os-release
if [ "$ID" == "alpine" ] && [ "${VERSION_ID:2:2}" -lt "22" ]; then
exit 0
fi
mkdir /tmp/backup
if command -v mariadb-backup >/dev/null; then
MARIADB_BACKUP="mariadb-backup"
@ -151,4 +157,3 @@
$MARIADB_BACKUP --backup \
--target-dir=/tmp/backup \
--user=root
when: ansible_os_family != "Alpine"