From 43535443c299eadc212551e2f21e9f7576dde0c2 Mon Sep 17 00:00:00 2001 From: saibotk Date: Wed, 21 Feb 2024 22:12:19 +0100 Subject: [PATCH] fix(backup-lvm): ExecStopPost command using bash syntax This cannot be used in a systemd exec command. Ooopsie --- roles/lvm_self_backup/templates/backup-lvm.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/lvm_self_backup/templates/backup-lvm.service b/roles/lvm_self_backup/templates/backup-lvm.service index a56c69b..6a0a1fd 100644 --- a/roles/lvm_self_backup/templates/backup-lvm.service +++ b/roles/lvm_self_backup/templates/backup-lvm.service @@ -23,7 +23,7 @@ ExecStopPost=/usr/bin/docker rm --force duplicity-backup-lvm # Unmount snapshots {% for item in lvm_self_backup_vols %} -ExecStopPost=/usr/bin/umount /dev/{{ item.vg_name }}/{{ item.lv_name }}_snap || true +ExecStopPost=/usr/bin/umount /dev/{{ item.vg_name }}/{{ item.lv_name }}_snap {% endfor %} # Remove snapshots