From 282ceb54e8ad61ff602ced1de74f2f835293c743 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Oct 2022 11:00:31 -0500 Subject: [PATCH] more attempts to automate the install Signed-off-by: Jeff Carr --- postinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postinst b/postinst index 85e3117..a450116 100755 --- a/postinst +++ b/postinst @@ -1,9 +1,12 @@ #!/bin/sh # create the mattermost user and database -su postgres -c 'createdb mattermost' su postgres -c 'createuser mmuser' +# not sure this or the other one works +# su postgres -c 'createdb mattermost' +su postgres -c 'createdb -O mmuser mattermost' + echo echo systemctl status mattermost.service echo