diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-11-25 17:07:50 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-12-08 16:33:56 +0900 |
commit | bf6081488c351d582230f8a9c29c6aa68d07e0ce (patch) | |
tree | e2eb43233eb49b17c2ea44ed700c69716be185e9 /strata/audio-bluetooth | |
parent | fed307096b08371403a2df907a63a55660c7e2fa (diff) | |
download | definitions-bf6081488c351d582230f8a9c29c6aa68d07e0ce.tar.gz |
Configuring pulse audio to use the pulse users & groups
Added the relevant configure options to tell pulse what users/groups
it should be using and also ensure the users/groups existence with
system integration hooks.
Change-Id: I2889ab7cf534c522ee436da1357673477e750a9e
Diffstat (limited to 'strata/audio-bluetooth')
-rw-r--r-- | strata/audio-bluetooth/pulseaudio.morph | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/strata/audio-bluetooth/pulseaudio.morph b/strata/audio-bluetooth/pulseaudio.morph index be4cb557..e6c3672a 100644 --- a/strata/audio-bluetooth/pulseaudio.morph +++ b/strata/audio-bluetooth/pulseaudio.morph @@ -7,7 +7,15 @@ pre-configure-commands: configure-commands: - ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --with-database=simple --with-systemduserunitdir=/lib/systemd/system + --with-system-user=pulse --with-system-group=pulse --with-access-group=pulse-access install-commands: - make DESTDIR="$DESTDIR" install - mkdir -p "$DESTDIR/etc/systemd/system/multi-user.target.wants" - ln -s /lib/systemd/system/pulseaudio.service "$DESTDIR/etc/systemd/system/multi-user.target.wants/pulseaudio.service" +system-integration: + pulseaudio-misc: + 00-add-pulse-users: + - groupadd -rf pulse-access + - groupadd -rf pulse-rt + - groupadd -f -g 171 -r pulse + - useradd -r -g pulse -d /var/run/pulse -s /bin/false -c "PulseAudio System Daemon" pulse || exit 0 |