aboutsummaryrefslogtreecommitdiff
path: root/seafile/seafile-server.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'seafile/seafile-server.pre-install')
-rw-r--r--seafile/seafile-server.pre-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/seafile/seafile-server.pre-install b/seafile/seafile-server.pre-install
new file mode 100644
index 0000000..7e3df0b
--- /dev/null
+++ b/seafile/seafile-server.pre-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+SEAFILE_HOME=/var/lib/seafile
+
+addgroup -S -g 800 seafile 2>/dev/null
+adduser -S -u 800 -D -h $SEAFILE_HOME -s /bin/sh -G seafile -g seafile seafile 2>/dev/null
+
+exit 0