aboutsummaryrefslogtreecommitdiffstats
path: root/community/gogs/gogs.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/gogs/gogs.pre-install')
-rw-r--r--community/gogs/gogs.pre-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/community/gogs/gogs.pre-install b/community/gogs/gogs.pre-install
new file mode 100644
index 0000000000..acf2093962
--- /dev/null
+++ b/community/gogs/gogs.pre-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+addgroup -S www-data 2>/dev/null
+adduser -S -D -h /var/lib/gogs -s /bin/ash -G www-data -g gogs gogs 2>/dev/null
+passwd -u gogs 2>/dev/null
+
+exit 0