Skip to content

Commit f01048a

Browse files
committed
fix: recycle option overrides vfs objects defined in the global section
1 parent f822364 commit f01048a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rootfs/etc/cont-init.d/01-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ if [[ "$(yq --output-format=json e '(.. | select(tag == "!!str")) |= envsubst' "
185185
if [[ "$(_jq '.hidefiles')" != "null" ]] && [[ -n "$(_jq '.hidefiles')" ]]; then
186186
echo "hide files = $(_jq '.hidefiles')" >> /etc/samba/smb.conf
187187
fi
188-
if [[ "$(_jq '.recycle')" != "null" ]] && [[ -n "$(_jq '.recycle')" ]]; then
188+
if [[ "$(_jq '.recycle')" != "null" ]] && [[ "$(_jq '.recycle')" = "yes" ]]; then
189189
echo "vfs objects = recycle" >> /etc/samba/smb.conf
190190
echo "recycle:repository = .recycle" >> /etc/samba/smb.conf
191191
echo "recycle:keeptree = yes" >> /etc/samba/smb.conf

0 commit comments

Comments
 (0)