ansitest/OSX/zfs-fix-shares-osx.sh
2021-04-08 12:26:25 -05:00

18 lines
419 B
Bash

#!/bin/bash
function fixman () {
for share in `zfs-show-my-shares--osx.sh |grep 'sharesmb on' |awk '{print $1}'`; do
echo "Fixing $share"
zfs set sharesmb=on $share
done
}
# 2019.0924 try this instead
zfs share -a
fixman
#zmac320/sharecompr-320int sharesmb on local
#zredteraB/shrcompr-zrtB sharesmb on local
zfs-show-my-shares--osx.sh