diff options
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..4de71d08f6ba --- /dev/null +++ b/mattermost.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +cd /usr/share/webapps/mattermost + +if [[ "$USER" = "mattermost" ]]; + exec bin/platform "$@" +else + exec sudo -u mattermost bin/platform "$@" +fi |