try to autoconfig postgres
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
4b39fbf83f
commit
c19f88d8cc
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
.PHONY: control
|
.PHONY: control
|
||||||
|
|
||||||
VERSION=7.3.0
|
VERSION=7.3.0
|
||||||
MINOR=v8
|
MINOR=v9
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo
|
@echo
|
||||||
|
|
16
postinst
16
postinst
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# create the mattermost user and database
|
||||||
|
su postgres -c 'createdb mattermost'
|
||||||
|
su postgres -c 'createuser mmuser'
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo systemctl status mattermost.service
|
echo systemctl status mattermost.service
|
||||||
echo
|
echo
|
||||||
|
@ -8,11 +12,9 @@ echo 'psql'
|
||||||
echo '\\db # will list the tablespaces'
|
echo '\\db # will list the tablespaces'
|
||||||
echo '\\dg # will list users'
|
echo '\\dg # will list users'
|
||||||
echo
|
echo
|
||||||
echo createuser --interactive -P blah
|
echo "ALTER USER mmuser with password 'mmpass';"
|
||||||
echo createuser -P -s -e jcarr
|
echo
|
||||||
echo dropuser jcarr
|
echo "CREATE DATABASE mattermost;"
|
||||||
echo '$ psql -U postgres'
|
echo "CREATE USER mmuser WITH PASSWORD 'mmpass';"
|
||||||
echo " db> ALTER USER postgres with password 'your-pass';"
|
echo "GRANT ALL PRIVILEGES ON DATABASE mattermost to mmuser;"
|
||||||
echo "su postgres createdb mattermost"
|
|
||||||
echo "su postgres createuser mmtest"
|
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue