summarylogtreecommitdiffstats
path: root/biboumi.install
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2016-06-11 01:36:21 +0100
committerEmmanuel Gil Peyrot2016-06-11 01:36:21 +0100
commit3ab702c34d0bcc2c2a15d7735ddbb64d89d36dea (patch)
treeecda278a074d54b9edf48b5830775535f930ddf3 /biboumi.install
parent75481d08485e80efffd2d2cc810289994c9d13de (diff)
downloadaur-3ab702c34d0bcc2c2a15d7735ddbb64d89d36dea.tar.gz
Add a biboumi user, and create the database and logs directories.
Diffstat (limited to 'biboumi.install')
-rw-r--r--biboumi.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/biboumi.install b/biboumi.install
new file mode 100644
index 000000000000..d86c40006c0c
--- /dev/null
+++ b/biboumi.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo Installing...
+ systemd-sysusers biboumi.conf
+ install -dm750 -o biboumi -g jabber var/lib/biboumi
+ install -dm750 -o biboumi -g jabber var/log/biboumi
+}
+
+post_upgrade() {
+ echo Upgrading...
+ post_install $1
+}
+
+post_remove() {
+ systemd-sysusers biboumi.conf
+}