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