Remove unneeded creation, fix op order.

This commit is contained in:
Otho 2022-11-20 22:22:20 -05:00
parent 6234584bd1
commit 2116458912
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -60,13 +60,12 @@ get_latest_snapshot()
setup_aggregator() setup_aggregator()
{ {
zfs allow -u ${BG_USER} send,snapshot,hold ${BG_ROOT}
create_datasets create_datasets
zfs allow -u ${BG_USER} send,snapshot,hold ${BG_ROOT}
} }
setup_mirror() setup_mirror()
{ {
zfs create -p $BG_ROOT
create_datasets create_datasets
zfs allow -u ${BG_USER} send,snapshot,hold ${BG_ROOT} zfs allow -u ${BG_USER} send,snapshot,hold ${BG_ROOT}
zfs allow -u ${BG_USER} \ zfs allow -u ${BG_USER} \