diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:50:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:50:22 +0000 |
commit | 4283a547939c204787a35239ff31758cccf2674f (patch) | |
tree | 961e298be9b22e950ab392515aa18ebb3de9bcd9 /debian/irker.postinst | |
parent | Adding upstream version 2.18+dfsg. (diff) | |
download | irker-4283a547939c204787a35239ff31758cccf2674f.tar.xz irker-4283a547939c204787a35239ff31758cccf2674f.zip |
Adding debian version 2.18+dfsg-3.debian/2.18+dfsg-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/irker.postinst')
-rw-r--r-- | debian/irker.postinst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/irker.postinst b/debian/irker.postinst new file mode 100644 index 0000000..ce4f7a5 --- /dev/null +++ b/debian/irker.postinst @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + if ! getent passwd irker > /dev/null 2>&1 + then + adduser --system --no-create-home --home /nonexistent --quiet --gecos 'irker daemon' --group irker + else + echo "irker user already exists, doing nothing." + fi + + mkdir -p /var/log/irker + chown irker:irker /var/log/irker + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |