summarylogtreecommitdiffstats
path: root/sandpolis-server.install
diff options
context:
space:
mode:
authorTyler Cook2019-03-16 16:22:49 -0500
committerTyler Cook2019-03-16 16:22:49 -0500
commited8541e0aaebf2b25bcebcacd1f1a2a34b4513bb (patch)
tree3dd1a738b9639ba83e50dbffea16444fbd0c7a91 /sandpolis-server.install
downloadaur-ed8541e0aaebf2b25bcebcacd1f1a2a34b4513bb.tar.gz
Initial commit
Diffstat (limited to 'sandpolis-server.install')
-rw-r--r--sandpolis-server.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/sandpolis-server.install b/sandpolis-server.install
new file mode 100644
index 000000000000..35b2e4eb75af
--- /dev/null
+++ b/sandpolis-server.install
@@ -0,0 +1,9 @@
+post_install() {
+ useradd -M -s /bin/false sandpolis
+ chown sandpolis /var/lib/sandpolis-server/db
+ chown sandpolis /var/lib/sandpolis-server/gen
+}
+
+post_remove() {
+ userdel sandpolis
+}