summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-14 14:06:31 +0300
committerLars Wirzenius <liw@liw.fi>2017-10-14 14:57:31 +0300
commit4ece3e95eb0122bfa122fd6a1bfeb5eea2531478 (patch)
tree0806852e5d88ed50884c2eae14a9f90c60ba125e /debian
parent8c34972274efdc291839a2609330ce5e7b54be76 (diff)
downloadick2-4ece3e95eb0122bfa122fd6a1bfeb5eea2531478.tar.gz
Add: create _ick user, make log dir owned by it
Diffstat (limited to 'debian')
-rw-r--r--debian/ick2.postinst9
1 files changed, 8 insertions, 1 deletions
diff --git a/debian/ick2.postinst b/debian/ick2.postinst
index c8192a7..13595a9 100644
--- a/debian/ick2.postinst
+++ b/debian/ick2.postinst
@@ -16,7 +16,14 @@
set -eu
+# Create a group and user for ick
+addgroup --system --force _ick
+adduser --system --disabled-login --disabled-password \
+ --gecos "Ick CI" --home /var/lib/ick \
+ --shell /bin/true --force \
+ _ick
+
# Create the log directory with the right ownership and permissions.
-install -d -m 0755 -o www-data -g www-data /var/log/ick2
+install -d -m 0755 -o _ick -g _ick /var/log/ick
#DEBHELPER#