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 %}