diff options
Diffstat (limited to 't/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst')
-rwxr-xr-x | t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst new file mode 100755 index 0000000..51a4df4 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst @@ -0,0 +1,14 @@ +#! /bin/sh +# excerpt from postinst script for pulseaudio + +case "$1" in + configure) + if ! getent passwd pulse >/dev/null; then + adduser --disabled-password --quiet --system \ + --home /var/run/pulse --no-create-home\ + --gecos "PulseAudio daemon" --group pulse + fi + ;; +esac + +exit 0 |