diff options
Diffstat (limited to 't/recipes/checks/maintainer-scripts/adduser')
4 files changed, 20 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 diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/fill-values b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/fill-values new file mode 100644 index 0000000..b2fefca --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: home-in-var-run +Description: Test for {pre,post}inst script which calls adduser --home /var/run diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/desc b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/desc new file mode 100644 index 0000000..075b41a --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/desc @@ -0,0 +1,2 @@ +Testname: home-in-var-run +Check: maintainer-scripts/adduser diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/hints b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/hints new file mode 100644 index 0000000..ed262f1 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/hints @@ -0,0 +1 @@ +home-in-var-run (binary): adduser-with-home-var-run [postinst:9] |