Skip to content

Commit

Permalink
Migrate uStreamer directory permissions to the uStreamer Debian packa…
Browse files Browse the repository at this point in the history
…ge (#14)

This change sets the correct permissions of the uStreamer directory
(i.e., /opt/ustreamer) using the uStreamer Debian package, replacing the
Ansible task.

Related: tiny-pilot/tinypilot#1467

<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/ustreamer-debian/14"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>
  • Loading branch information
db39 authored Aug 2, 2023
1 parent 2ace4a1 commit 0f548cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .lintianignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
# clear guidance on where they *should* go. It's too much churn at this point to
# change, so we're going to ignore this.
dir-or-file-in-opt

# Ignore this until we find a better way of setting permissions properly.
# https://github.com/tiny-pilot/tinypilot/issues/1196
recursive-privilege-change
3 changes: 3 additions & 0 deletions debian/ustreamer.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ usermod \
--append \
--groups video \
"${USTREAMER_USER}"

# Assign ownership of the ustreamer dir to the ustreamer user and group.
chown -R "${USTREAMER_USER}:${USTREAMER_GROUP}" /opt/ustreamer

0 comments on commit 0f548cb

Please sign in to comment.