diff --git a/files/usr/bin/mattermost b/files/usr/bin/mattermost deleted file mode 120000 index e7dd77c..0000000 --- a/files/usr/bin/mattermost +++ /dev/null @@ -1 +0,0 @@ -../../opt/mattermost/bin/mattermost \ No newline at end of file diff --git a/files/usr/bin/mattermost b/files/usr/bin/mattermost new file mode 100755 index 0000000..dab180f --- /dev/null +++ b/files/usr/bin/mattermost @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/mattermost +./bin/mattermost --config /etc/mattermost/config.json diff --git a/postinst b/postinst index a117379..cc4208c 100755 --- a/postinst +++ b/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