Skip to content

Commit

Permalink
samba.sh fix #264, maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Mar 25, 2020
1 parent 2016e13 commit 5f816df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 "$@"
Expand Down

0 comments on commit 5f816df

Please sign in to comment.