-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- 386 | ||
archives: | ||
- replacements: | ||
386: i386 | ||
amd64: x86_64 | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
nfpms: | ||
- id: deb | ||
package_name: rtmp2hls | ||
homepage: https://github.com/Thor77/rtmp2hls | ||
maintainer: Thor77 <thor77 at thor77 dot org> | ||
description: Simple rtmp server with hls output | ||
license: MIT | ||
formats: | ||
- deb | ||
bindir: /usr/bin | ||
files: | ||
'doc/rtmp2hls.service': '/lib/systemd/system/rtmp2hls.service' | ||
config_files: | ||
'config.toml': '/etc/rtmp2hls.toml' | ||
scripts: | ||
postinstall: 'doc/postinstall.sh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
if ! getent group rtmp2hls > /dev/null 2>&1 ; then | ||
addgroup --system rtmp2hls --quiet | ||
fi | ||
if ! id rtmp2hls > /dev/null 2>&1 ; then | ||
adduser --system --no-create-home \ | ||
--ingroup rtmp2hls --disabled-password --shell /bin/false \ | ||
rtmp2hls | ||
fi |