TT#182450 manage /var/spool/rtpengine in rtpengine-daemon

/var/spool/rtpengine is used by the main daemon as well as the recording
daemon. The recording daemon is not really useful without the main
daemon, while it's perfectly fine to use the main daemon without the
recording daemon. That directory should therefore be managed by the main
daemon package.

This fixes a broken systemd unit stemming from a missing directory if
the recording daemon is not installed.

Fix-up for 26bf2b05a5
Fix-up for I4abf4df218b1ba0dc70ed8974c0661d16e0b6ea7

Fixes GH 

Change-Id: If75b6c1b675c8abf0bb33ae58b41e036276f8640
(cherry picked from commit de8b3d59c1)
mr10.5.2
Richard Fuchs 3 years ago
parent 1936c50ec2
commit 9ff3ee9c9f

@ -0,0 +1 @@
var/spool/rtpengine

@ -36,6 +36,13 @@ if [ "$1" = configure ]; then
adduser --system --home /nonexistent --gecos rtpengine \
--no-create-home --disabled-password \
--group --quiet rtpengine || true
for DIR in /var/spool/rtpengine; do
if ! dpkg-statoverride --list "$DIR" > /dev/null 2>&1; then
chown rtpengine:rtpengine "$DIR"
chmod 0770 "$DIR"
fi
done
fi
#DEBHELPER#

@ -1,2 +1 @@
var/lib/rtpengine-recording
var/spool/rtpengine

@ -3,7 +3,7 @@
set -e
if [ "$1" = configure ]; then
for DIR in /var/lib/rtpengine-recording /var/spool/rtpengine; do
for DIR in /var/lib/rtpengine-recording; do
if ! dpkg-statoverride --list "$DIR" > /dev/null 2>&1; then
chown rtpengine:rtpengine "$DIR"
chmod 0770 "$DIR"

Loading…
Cancel
Save