summarylogtreecommitdiffstats
path: root/crate.install
diff options
context:
space:
mode:
authorcrate2015-06-29 12:36:18 +0000
committercrate2015-06-29 12:36:18 +0000
commitb3bcf942e1e31034c67cd1982fe6a16cc91fbf15 (patch)
tree67a0c2d3a02e8fe70b99bdfd929e6c591d41a15f /crate.install
downloadaur-b3bcf942e1e31034c67cd1982fe6a16cc91fbf15.tar.gz
Initial import
Diffstat (limited to 'crate.install')
-rw-r--r--crate.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/crate.install b/crate.install
new file mode 100644
index 000000000000..189d0152c2a5
--- /dev/null
+++ b/crate.install
@@ -0,0 +1,10 @@
+post_install() {
+ useradd -r -g daemon -d /usr/share/crate -s /bin/false crate
+ chown -R crate:daemon /usr/share/crate
+ chown -R crate:daemon /var/lib/crate
+ chown -R crate:daemon /var/log/crate
+}
+
+post_remove() {
+ userdel crate
+}