Do you have step-by-step instructions that others can follow?
Any concrete error from script output or logs?
hard to say, maybe you already have gone through this:
mattermost is located under
Make sure the correct url is set in
config_init.sh of Mattermost-LDAP and remove port from it if not required.
init_postgres.sh is failing remember that in nethserver mattermost implementation postgresdb comes from Red Hat SCL:
# NethServer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with NethServer. If not, see COPYING.
su - postgres -c "scl enable rh-postgresql94 -- psql --port=55432 -lqt | cut -d \| -f 1 | grep -q -w mattermost"
if [ $? -eq 1 ]; then # database do not exists
# create db and users
chmod a+r $tmp_sql
password=`perl -e "use NethServer::Password; print NethServer::Password::store('mattermost');"`
cat << EOF > $tmp_sql
CREATE database mattermost;
CREATE USER mattuser WITH PASSWORD '$password';
ALTER USER mattuser WITH SUPERUSER;