Segfault in mariabackup should now be fixed on Alpine >= 3.22
This commit is contained in:
parent
6d6465ad31
commit
512440fdd7
|
|
@ -142,6 +142,12 @@
|
||||||
|
|
||||||
- name: Check if backup is working (mariadb-backup)
|
- name: Check if backup is working (mariadb-backup)
|
||||||
ansible.builtin.shell: |
|
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
|
mkdir /tmp/backup
|
||||||
if command -v mariadb-backup >/dev/null; then
|
if command -v mariadb-backup >/dev/null; then
|
||||||
MARIADB_BACKUP="mariadb-backup"
|
MARIADB_BACKUP="mariadb-backup"
|
||||||
|
|
@ -151,4 +157,3 @@
|
||||||
$MARIADB_BACKUP --backup \
|
$MARIADB_BACKUP --backup \
|
||||||
--target-dir=/tmp/backup \
|
--target-dir=/tmp/backup \
|
||||||
--user=root
|
--user=root
|
||||||
when: ansible_os_family != "Alpine"
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue