Skip to content

Commit

Permalink
Merge pull request #5 from sweisgerber/fix/start-snapclient-spam
Browse files Browse the repository at this point in the history
Fixed start snapclient spam
  • Loading branch information
sweisgerber authored Jan 20, 2024
2 parents 924f8b0 + 3832361 commit 6f00f5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 8 additions & 4 deletions root/etc/s6-overlay/s6-rc.d/init-snapcast-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ lsiown -R abc:abc \
/data \
/audio

if [ -n ${HOST_AUDIO_GROUP+x} ]; then
echo "Add HOST_AUDIO_GROUP: $HOST_AUDIO_GROUP"
addgroup host-audio -g $HOST_AUDIO_GROUP
addgroup abc host-audio
if [ "$START_SNAPCLIENT" = 'true' ]; then
if [ -n ${HOST_AUDIO_GROUP+x} ]; then
echo "Add HOST_AUDIO_GROUP: '$HOST_AUDIO_GROUP'"
addgroup host-audio -g $HOST_AUDIO_GROUP
addgroup abc host-audio
fi
else
echo "Not starting snapclient. Set 'START_SNAPCLIENT=true' to start it."
fi
4 changes: 0 additions & 4 deletions root/etc/s6-overlay/s6-rc.d/svc-snapclient/run
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ if [ "$START_SNAPCLIENT" = 'true' ]; then
fi
exec \
s6-setuidgid $PUID:$SNAPCLIENT_PROCESS_PORT /usr/bin/snapclient $SNAPCLIENT_OPTS

else
exec \
s6-setuidgid abc echo "Not starting snapclient. Set 'START_SNAPCLIENT=true' to start it."
fi

0 comments on commit 6f00f5e

Please sign in to comment.