Skip to content

Commit

Permalink
Install Janus config files from TinyPilot Debian package (#1552)
Browse files Browse the repository at this point in the history
Resolves #1496

This change replaces the Ansible task responsible for creating the Janus
config files, implementing it in TinyPilot's Debian package instead.

To test this bundle, run:

```bash
curl \
  --silent \
  --show-error \
  --location \
  https://raw.githubusercontent.com/tiny-pilot/tinypilot/master/scripts/install-bundle | \
  sudo bash -s -- \
    https://output.circle-artifacts.com/output/job/5e8d773d-c381-465e-bd67-425ff99f5cd3/artifacts/0/bundler/dist/tinypilot-community-20230804T1445Z-1.9.0-46+dd77b49.tgz
```
<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1552"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>
  • Loading branch information
db39 authored Aug 4, 2023
1 parent f50547d commit c64840e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ansible-role-ustreamer/tasks/install_janus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,3 @@
apt:
name: janus
default_release: "{{ ustreamer_janus_apt_suite }}"

- name: create Janus config files
template:
src: "{{ item }}.j2"
dest: "{{ ustreamer_janus_configs_dir }}/{{ item }}"
owner: root
group: root
mode: "0644"
loop:
- janus.jcfg
- janus.transport.websockets.jcfg
notify:
- restart Janus
8 changes: 8 additions & 0 deletions debian-pkg/debian/tinypilot.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,12 @@ else
deb-systemd-invoke start nginx
fi

# Restore the Janus config files.
cp \
/usr/share/tinypilot/janus.jcfg \
/etc/janus/janus.jcfg
cp \
/usr/share/tinypilot/janus.transport.websockets.jcfg \
/etc/janus/janus.transport.websockets.jcfg

#DEBHELPER#
File renamed without changes.

0 comments on commit c64840e

Please sign in to comment.