Update bashclub-zfs

This commit is contained in:
cpzengel 2022-01-31 16:49:26 +01:00 committed by GitHub
parent 3f681bce20
commit 6830ddf05f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,8 @@ ZFS() {
fi
}
(
flock -n 9 || exit 1
###
### defaults
###
@ -276,3 +278,5 @@ for snap in $(ZFS "$srchost" list -d 1 -t snapshot -H -S creation -o name $srcfs
do
ZFS "$srchost" destroy -r $srcfs@$snap
done
) 9>/var/lock/bashclub-zfs.lock