Skip to content

Conversation

@akhal3d96
Copy link

@akhal3d96 akhal3d96 commented Jun 21, 2025

Previously recycle field value wasn't checked and it was always set with this small change it checks if it's set to yes and if so it appends its configuration to /etc/samba/smb.conf.

This is crucial to make Samba works in write-mode with iOS. "vfs objects = recycle" overrides the global configuration vfs objects = fruit streams_xattr

fixes: #132

@akhal3d96 akhal3d96 requested a review from crazy-max as a code owner June 21, 2025 19:46
@akhal3d96 akhal3d96 force-pushed the fix_recycle_option branch from a0d22d7 to f01048a Compare July 11, 2025 17:30
echo "hide files = $(_jq '.hidefiles')" >> /etc/samba/smb.conf
fi
if [[ "$(_jq '.recycle')" != "null" ]] && [[ -n "$(_jq '.recycle')" ]]; then
if [[ "$(_jq '.recycle')" != "null" ]] && [[ "$(_jq '.recycle')" = "yes" ]]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!= "null" check is redundant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue: "recycle" Option in Samba Docker Image Does Not Accept "no" Value

2 participants