examples - add missing setup.sh for mattermost

This commit is contained in:
bunkerity 2022-06-28 10:21:19 +02:00
parent 70c60f2a9b
commit 0a1e8be71f
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 11 additions and 0 deletions

11
examples/mattermost/setup.sh Executable file
View File

@ -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