privileges
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
f 2022-03-19 15:32:12 -03:00
parent b09bdf181a
commit 2c2b9d7b70
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,10 @@ ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <f@sutty.nl>"
RUN getent group 82 || addgroup -g 82 -S www-data
RUN adduser -s /bin/sh -G www-data -h /srv/matterbridge -D matterbridge
RUN apk add --no-cache matterbridge daemonize
COPY ./monit.conf /etc/monit.d/matterbridge.conf
COPY ./matterbridged.sh /usr/local/bin/matterbridged

View File

@ -4,10 +4,11 @@ set -e
pid=/run/matterbridge.pid
log=/tmp/matterbridge.log
cnf=/etc/matterbridge/matterbridge.toml
srv=/srv/matterbridge
case $1 in
start)
daemonize -a -e ${log} -o ${log} -p ${pid} -l ${pid} /usr/bin/matterbridge -conf ${cnf}
daemonize -a -e ${log} -o ${log} -p ${pid} -l ${pid} -u matterbridge -c ${srv} /usr/bin/matterbridge -conf ${cnf}
;;
stop)
test -f ${pid} || exit 0