From 5f816df76a1a9e35d9403901e7f88f3f4a846dae Mon Sep 17 00:00:00 2001 From: David Personette Date: Wed, 25 Mar 2020 09:06:26 -0400 Subject: [PATCH] samba.sh fix #264, maybe? --- samba.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index 4eb00da..46d2608 100755 --- a/samba.sh +++ b/samba.sh @@ -75,6 +75,7 @@ perms() { local i file=/etc/samba/smb.conf find $i -type f ! -perm 0664 -exec chmod 0664 {} \; done } +export -f perms ### recycle: disable recycle bin # Arguments: @@ -257,7 +258,7 @@ done < <(env | awk '/^USER[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}') [[ "${WORKGROUP:-""}" ]] && workgroup "$WORKGROUP" [[ "${WIDELINKS:-""}" ]] && widelinks [[ "${INCLUDE:-""}" ]] && include "$INCLUDE" -[[ "${PERMISSIONS:-""}" ]] && perms +[[ "${PERMISSIONS:-""}" ]] && perms & if [[ $# -ge 1 && -x $(which $1 2>&-) ]]; then exec "$@"