Skip to content

Commit f2a4df7

Browse files
committed
Recursively detroy zfs jails
Somehow some snapshot got created probably by some automated backup tool.
1 parent 101ce3b commit f2a4df7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cfbot_patchburner_ctl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ destroy_patchburner_if_exists() {
6565
ezjail-admin delete -f $JAIL_NAME
6666
fi
6767
if zfs list $ZFS_NAME >/dev/null 2>&1; then
68-
zfs destroy -f $ZFS_NAME
68+
zfs destroy -rf $ZFS_NAME
6969
fi
7070
if zfs list $TEMPLATE_ZFS_NAME@mysnapshot >/dev/null 2>&1; then
71-
zfs destroy -f $TEMPLATE_ZFS_NAME@mysnapshot
71+
zfs destroy -rf $TEMPLATE_ZFS_NAME@mysnapshot
7272
fi
7373
}
7474

0 commit comments

Comments
 (0)