diff options
author | William Gathoye | 2017-03-11 15:29:08 +0100 |
---|---|---|
committer | William Gathoye | 2017-05-10 15:46:34 +0200 |
commit | 04d9eb6d4194448d4420f34da55454cafcda58eb (patch) | |
tree | 78095d9e26a8f039a92fff08724901c2c3a1301e /mattermost.sh | |
download | aur-04d9eb6d4194448d4420f34da55454cafcda58eb.tar.gz |
Initial import from AUR package mattermost and update to 3.9
Diffstat (limited to 'mattermost.sh')
-rw-r--r-- | mattermost.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mattermost.sh b/mattermost.sh new file mode 100644 index 000000000000..08b9ea965bb9 --- /dev/null +++ b/mattermost.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +cd /usr/share/webapps/mattermost + +if [[ "$USER" = "mattermost" ]]; then + exec bin/platform "$@" +else + exec sudo -u mattermost bin/platform "$@" +fi |