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