From 1c8af4a82fe904f8bc2435e7411016760f86d171 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Oct 2022 09:17:23 -0500 Subject: [PATCH] mattermost must be run with PWD=/opt/mattermost Signed-off-by: Jeff Carr --- files/usr/bin/mattermost | 5 ++++- postinst | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) mode change 120000 => 100755 files/usr/bin/mattermost 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