diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:31:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:31:26 +0000 |
commit | f686102cc3129b62339e3166afdf492015deee07 (patch) | |
tree | d0f5387a7b3c5b218b921f58a70db6067bc93e28 /debian/irker.postinst | |
parent | Adding upstream version 2.19+dfsg. (diff) | |
download | irker-debian.tar.xz irker-debian.zip |
Adding debian version 2.19+dfsg-1.debian/2.19+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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 |