summaryrefslogtreecommitdiffstats
path: root/debian/irker.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:31:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:31:26 +0000
commitf686102cc3129b62339e3166afdf492015deee07 (patch)
treed0f5387a7b3c5b218b921f58a70db6067bc93e28 /debian/irker.postinst
parentAdding upstream version 2.19+dfsg. (diff)
downloadirker-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.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