diff options
author | Michael Gerber | 2016-01-02 15:54:29 +0100 |
---|---|---|
committer | Michael Gerber | 2016-01-02 15:54:29 +0100 |
commit | 96820e4bd897c6f6afc9643425704bb014f750c2 (patch) | |
tree | 0d693b70d6b760f507c7431d6413cd129cef4b93 /open-xchange-appsuite-l10n-en-us.install | |
download | aur-96820e4bd897c6f6afc9643425704bb014f750c2.tar.gz |
Initial commit
Diffstat (limited to 'open-xchange-appsuite-l10n-en-us.install')
-rw-r--r-- | open-xchange-appsuite-l10n-en-us.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/open-xchange-appsuite-l10n-en-us.install b/open-xchange-appsuite-l10n-en-us.install new file mode 100644 index 000000000000..27ab8bbd33a0 --- /dev/null +++ b/open-xchange-appsuite-l10n-en-us.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 +} |