aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnunet/gnunet.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnunet/gnunet.pre-install')
-rw-r--r--community/gnunet/gnunet.pre-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/gnunet/gnunet.pre-install b/community/gnunet/gnunet.pre-install
new file mode 100644
index 00000000000..901356990ab
--- /dev/null
+++ b/community/gnunet/gnunet.pre-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Add special group gnunetdns for controlling access to "gnunet-helper-dns".
+addgroup -S gnunetdns 2>/dev/null
+
+# Add system user/group gnunet for system services
+addgroup -S gnunet 2>/dev/null
+adduser -S -D -h /var/lib/gnunet -s /sbin/nologin gnunet 2>/dev/null
+adduser gnunet gnunet
+
+exit 0