From 74303cd041d3a3fd039833a0c9ece842612f7d5b Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Thu, 31 Oct 2024 11:09:27 +0100 Subject: [PATCH] dfg --- roles/mgrote_rsync/templates/rsync_mirror.sh.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/mgrote_rsync/templates/rsync_mirror.sh.j2 b/roles/mgrote_rsync/templates/rsync_mirror.sh.j2 index 2d66faf9..f3797695 100644 --- a/roles/mgrote_rsync/templates/rsync_mirror.sh.j2 +++ b/roles/mgrote_rsync/templates/rsync_mirror.sh.j2 @@ -14,8 +14,10 @@ if [[ "$(/usr/sbin/zfs get mounted -H {{ item.src | regex_replace('^/', '') }} | {# "/" am Ende von Src+Dest ist Wichtig und notwendig, sonst wird in Unterordner kopiert #} else echo "Destination-Dataset not mounted!" + exit 1 fi else echo "Source-Dataset not mounted!" + exit 1 fi {% endfor %}