summarylogtreecommitdiffstats
path: root/open-xchange-authorization-standard.install
diff options
context:
space:
mode:
authorMichael Gerber2016-01-01 18:43:06 +0100
committerMichael Gerber2016-01-01 18:43:06 +0100
commit4d4136286c4d8f60f668408db4debaca2c2eda7c (patch)
tree8cddc68c9b3e07c421e20f1959abd2ddc70ad843 /open-xchange-authorization-standard.install
downloadaur-4d4136286c4d8f60f668408db4debaca2c2eda7c.tar.gz
Initial commit
Diffstat (limited to 'open-xchange-authorization-standard.install')
-rw-r--r--open-xchange-authorization-standard.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/open-xchange-authorization-standard.install b/open-xchange-authorization-standard.install
new file mode 100644
index 000000000000..5a0607f15101
--- /dev/null
+++ b/open-xchange-authorization-standard.install
@@ -0,0 +1,16 @@
+# This is a default template for a post-install scriptlet.
+# Uncomment only required functions and remove any functions
+# you don't need (and this header).
+
+pre_install() {
+ if id -u "open-xchange" >/dev/null 2>&1; then
+ echo "user open-xchange exists. All good."
+ else
+ echo "user open-xchange does not exist. Creating it now"
+ useradd -U -s /usr/bin/false -d /opt/open-xchange open-xchange
+ fi
+}
+
+post_install() {
+ chown -R open-xchange:open-xchange /opt/open-xchange
+}