diff options
author | Michael Gerber | 2016-01-02 15:55:36 +0100 |
---|---|---|
committer | Michael Gerber | 2016-01-02 15:55:36 +0100 |
commit | 816131d1f4377beb64e79698a1ef391eb9c048cc (patch) | |
tree | 71082befe402067e2cf8538b87d3b794eeeb4c35 /open-xchange-dav.install | |
download | aur-816131d1f4377beb64e79698a1ef391eb9c048cc.tar.gz |
Initial commit
Diffstat (limited to 'open-xchange-dav.install')
-rw-r--r-- | open-xchange-dav.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/open-xchange-dav.install b/open-xchange-dav.install new file mode 100644 index 000000000000..27ab8bbd33a0 --- /dev/null +++ b/open-xchange-dav.install @@ -0,0 +1,14 @@ +# 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 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 +} |