mattermost must be run with PWD=/opt/mattermost
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
38de98c5cd
commit
1c8af4a82f
|
@ -1 +0,0 @@
|
||||||
../../opt/mattermost/bin/mattermost
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd /opt/mattermost
|
||||||
|
./bin/mattermost --config /etc/mattermost/config.json
|
17
postinst
17
postinst
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue