samba.sh fix #250 move when the permissions get set
This commit is contained in:
parent
4417ef4eec
commit
d6a94ae276
2
samba.sh
2
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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user