17 lines
351 B
Bash
Executable File
17 lines
351 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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
|