ansible-roles/roles/samba/templates/samba_post_backup.sh.j2

10 lines
181 B
Plaintext
Raw Normal View History

2021-12-01 19:13:34 +01:00
#!/bin/sh
2022-11-03 11:00:08 +01:00
set -eo pipefail
{% if samba_role in ['dc', 'rodc'] %}
2021-12-01 19:13:34 +01:00
rm -rf /home/lbkp/samba
2022-11-03 11:00:08 +01:00
{% else %}
echo "Samba not running as a domain controller, no dump to remove"
{% endif %}