summaryrefslogtreecommitdiffstats
path: root/debian/irker.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:27:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:27:58 +0000
commit407c285aea9830dc068a3bb49ada360c909d438b (patch)
tree721f0b462bde352148c2d34bd503e55f2bf0a934 /debian/irker.postinst
parentAdding upstream version 2.23+dfsg. (diff)
downloadirker-407c285aea9830dc068a3bb49ada360c909d438b.tar.xz
irker-407c285aea9830dc068a3bb49ada360c909d438b.zip
Adding debian version 2.23+dfsg-1.debian/2.23+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/irker.postinst')
-rw-r--r--debian/irker.postinst30
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