summarylogtreecommitdiffstats
path: root/mattermost.sh
blob: 08b9ea965bb99c8e0dff5c5a59e70914dc775c02 (plain)
1
2
3
4
5
6
7
8
9
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