Skip to content

Commit

Permalink
fixed issue #107
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvAmBass committed Oct 8, 2023
1 parent c5b111f commit 571d321
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ _all of those variants are automatically build and generated in one go_

## Changelogs

* 2023-10-08
* fixed avahi service config - `</service-group>` error (Issue #107)
* 2023-09-24
* added `nmbd` service and increase compatibility
* print `smb.conf` on initialization to make `testparm -s` problems visible
Expand Down
6 changes: 5 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,17 @@ if [ ! -f "$INITALIZED" ]; then

if ! grep '<txt-record>model=' /etc/avahi/services/samba.service 2> /dev/null >/dev/null;
then
# remove </service-group>
sed -i '/<\/service-group>/d' /etc/avahi/services/samba.service

echo " >> AVAHI: zeroconf model: $MODEL"
echo '
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model='"$MODEL"'</txt-record>
</service>' >> /etc/avahi/services/samba.service
</service>
</service-group>' >> /etc/avahi/services/samba.service
fi

##
Expand Down

0 comments on commit 571d321

Please sign in to comment.