fix(backup-lvm): ExecStopPost command using bash syntax

This cannot be used in a systemd exec command. Ooopsie
This commit is contained in:
saibotk 2024-02-21 22:12:19 +01:00
parent 7d1e804ef1
commit 43535443c2
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -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