summarylogtreecommitdiffstats
path: root/sandpolis-server.install
diff options
context:
space:
mode:
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
+}