aboutsummaryrefslogtreecommitdiff
path: root/midr/midr.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'midr/midr.pre-install')
-rw-r--r--midr/midr.pre-install7
1 files changed, 6 insertions, 1 deletions
diff --git a/midr/midr.pre-install b/midr/midr.pre-install
index 20f04f7..74f1b59 100644
--- a/midr/midr.pre-install
+++ b/midr/midr.pre-install
@@ -1,4 +1,9 @@
#!/bin/sh
-# add something which happens before install
+user=www-data
+group=www-data
+addgroup -S $group 2>/dev/null
+adduser -S -D -h /var/lib/$user -s /sbin/nologin -G $group -g $user $user 2>/dev/null
+
+exit 0