From d6a94ae276d026e1ee7757ba4aec6620448738f4 Mon Sep 17 00:00:00 2001 From: David Personette Date: Wed, 30 Oct 2019 16:43:38 -0400 Subject: [PATCH] samba.sh fix #250 move when the permissions get set --- samba.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index 5ddffc3..a32c1b3 100755 --- a/samba.sh +++ b/samba.sh @@ -244,7 +244,6 @@ while read i; do global "$i" done < <(env | awk '/^GLOBAL[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}') [[ "${IMPORT:-""}" ]] && import "$IMPORT" -[[ "${PERMISSIONS:-""}" ]] && perms [[ "${RECYCLE:-""}" ]] && recycle while read i; do eval share $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i) @@ -256,6 +255,7 @@ done < <(env | awk '/^USER[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}') [[ "${WORKGROUP:-""}" ]] && workgroup "$WORKGROUP" [[ "${WIDELINKS:-""}" ]] && widelinks [[ "${INCLUDE:-""}" ]] && include "$INCLUDE" +[[ "${PERMISSIONS:-""}" ]] && perms if [[ $# -ge 1 && -x $(which $1 2>&-) ]]; then exec "$@"