samba.sh fix #250 move when the permissions get set

This commit is contained in:
David Personette 2019-10-30 16:43:38 -04:00
parent 4417ef4eec
commit d6a94ae276

View File

@ -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 "$@"