summarylogtreecommitdiffstats
path: root/mastodon.install
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon.install')
-rw-r--r--mastodon.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/mastodon.install b/mastodon.install
new file mode 100644
index 000000000000..25ff428c8b12
--- /dev/null
+++ b/mastodon.install
@@ -0,0 +1,8 @@
+_user=mastodon
+_homedir=/var/lib/mastodon
+_shell=/bin/false
+
+post_install() {
+ getent group ${_user} > /dev/null || groupadd ${_user} > /dev/null
+ getent passwd ${_user} > /dev/null || useradd -d ${_homedir} -g ${_user} -s ${_shell} ${_user} > /dev/null
+}