summarylogtreecommitdiffstats
path: root/mattermost.sh
diff options
context:
space:
mode:
authorWilliam Gathoye2017-03-11 15:29:08 +0100
committerWilliam Gathoye2017-05-10 15:46:34 +0200
commit04d9eb6d4194448d4420f34da55454cafcda58eb (patch)
tree78095d9e26a8f039a92fff08724901c2c3a1301e /mattermost.sh
downloadaur-04d9eb6d4194448d4420f34da55454cafcda58eb.tar.gz
Initial import from AUR package mattermost and update to 3.9
Diffstat (limited to 'mattermost.sh')
-rw-r--r--mattermost.sh10
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