Skip to content

Commit ed0d1fa

Browse files
authored
Prevent tinypilot.postinst from appending to Janus config (#1615)
There was a bug in the tinypilot.postinst where we were appending to an existing janus.plugin.ustreamer.jcfg file instead of the intended behavior of recreating the file fresh on each install. <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1615"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a>
1 parent 92298b4 commit ed0d1fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

debian-pkg/debian/tinypilot.postinst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,13 @@ fi
110110

111111
# Populate TinyPilot's Janus settings file.
112112
readonly JANUS_PLUGIN_USTREAMER_CONFIG='/etc/janus/janus.plugin.ustreamer.jcfg'
113-
cat <<EOF >> "${JANUS_PLUGIN_USTREAMER_CONFIG}"
113+
cat <<EOF > "${JANUS_PLUGIN_USTREAMER_CONFIG}"
114114
memsink: {
115115
object = "tinypilot::ustreamer::h264"
116116
}
117117
EOF
118118

119+
# Append audio settings if TC358743 support is enabled.
119120
if "${tc358743_overlay_enabled}" ; then
120121
cat <<EOF >> "${JANUS_PLUGIN_USTREAMER_CONFIG}"
121122
audio: {

0 commit comments

Comments
 (0)