From 0a1e8be71f51b873e9d368174c8bd6cf9bac0e22 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Tue, 28 Jun 2022 10:21:19 +0200 Subject: [PATCH] examples - add missing setup.sh for mattermost --- examples/mattermost/setup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 examples/mattermost/setup.sh diff --git a/examples/mattermost/setup.sh b/examples/mattermost/setup.sh new file mode 100755 index 00000000..d8e9f9be --- /dev/null +++ b/examples/mattermost/setup.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ $(id -u) -ne 0 ] ; then + echo "❌ Run me as root" + exit 1 +fi + +if [ ! -d ./volumes/app/mattermost ] ; then + mkdir -p ./volumes/app/mattermost/{config,data,logs,plugins,client/plugins,bleve-indexes} +fi +chown -R 2000:2000 ./volumes/app/mattermost