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"
|
global "$i"
|
||||||
done < <(env | awk '/^GLOBAL[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}')
|
done < <(env | awk '/^GLOBAL[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}')
|
||||||
[[ "${IMPORT:-""}" ]] && import "$IMPORT"
|
[[ "${IMPORT:-""}" ]] && import "$IMPORT"
|
||||||
[[ "${PERMISSIONS:-""}" ]] && perms
|
|
||||||
[[ "${RECYCLE:-""}" ]] && recycle
|
[[ "${RECYCLE:-""}" ]] && recycle
|
||||||
while read i; do
|
while read i; do
|
||||||
eval share $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i)
|
eval share $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i)
|
||||||
@ -256,6 +255,7 @@ done < <(env | awk '/^USER[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}')
|
|||||||
[[ "${WORKGROUP:-""}" ]] && workgroup "$WORKGROUP"
|
[[ "${WORKGROUP:-""}" ]] && workgroup "$WORKGROUP"
|
||||||
[[ "${WIDELINKS:-""}" ]] && widelinks
|
[[ "${WIDELINKS:-""}" ]] && widelinks
|
||||||
[[ "${INCLUDE:-""}" ]] && include "$INCLUDE"
|
[[ "${INCLUDE:-""}" ]] && include "$INCLUDE"
|
||||||
|
[[ "${PERMISSIONS:-""}" ]] && perms
|
||||||
|
|
||||||
if [[ $# -ge 1 && -x $(which $1 2>&-) ]]; then
|
if [[ $# -ge 1 && -x $(which $1 2>&-) ]]; then
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user