Wrong mattermost backup in NethServer HotSync

Hi all, @mrmarkuz reported a bug of HotSync package. I’m going to fix it. This is the message:

"I found that Hotsync produces an error when Mattermost is installed.
Mattermost uses postgresql12 now but hotsync still wants to backup the old database from a wrong port.
In /etc/hotsync.d/mattermost.sh line 34 should look like this to respect the newer database server and to make it work again:
/usr/bin/su - postgres -c "scl enable rh-postgresql12 -- pg_dump --port 55434 mattermost > /var/lib/nethserver/mattermost/backup/mattermost.sql""

Here is the bug

Thank you!

5 Likes

The package is ready to be tested. @mrmarkuz do you want to test it?

yum clean all && yum update -y nethserver-hotsync --enablerepo=nethforge-testing

or

yum clean all && yum update -y http://packages.nethserver.org/nethserver/7.9.2009/nethforge-testing/x86_64/Packages/nethserver-hotsync-2.2.3-1.1.g79ef9f8.ns7.noarch.rpm

Thank you again :slight_smile:

2 Likes

It’s working now without error. Thanks for the quick fix!

2 Likes

Released 2.2.4! Thank you @mrmarkuz

2 Likes