mattermost must be run with PWD=/opt/mattermost

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2022-10-08 09:17:23 -05:00
parent 38de98c5cd
commit 1c8af4a82f
2 changed files with 19 additions and 3 deletions

View File

@ -1 +0,0 @@
../../opt/mattermost/bin/mattermost

4
files/usr/bin/mattermost Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /opt/mattermost
./bin/mattermost --config /etc/mattermost/config.json

View File

@ -1,3 +1,16 @@
#!/bin/sh -x
#!/bin/sh
systemctl status mattermost.service
echo
echo systemctl status mattermost.service
echo
echo 'su - postgres'
echo 'psql'
echo '\\db # will list the tablespaces'
echo '\\dg # will list users'
echo
echo createuser --interactive -P blah
echo createuser -P -s -e jcarr
echo dropuser jcarr
echo '$ psql -U postgres'
echo " db> ALTER USER postgres with password 'your-pass';"
echo