I have Mattermost installed on Ubuntu with Mattermost Version: 10.12.0. I was following these steps to update it:
Bash
cd /tmp
wget https://releases.mattermost.com/11.0.4/mattermost-11.0.4-linux-amd64.tar.gz
tar -xf mattermost*.gz --transform='s,^[^/]\+,\0-upgrade,'
sudo systemctl stop mattermost
cd /opt
sudo cp -ra mattermost/ mattermost-back-$(date +'%F-%H-%M')/ # Backup
sudo find mattermost/ mattermost/client/ -mindepth 1 -maxdepth 1 \! \( -type d \( -path mattermost/client -o -path mattermost/client/plugins -o -path mattermost/config -o -path mattermost/logs -o -path mattermost/plugins -o -path mattermost/data \) -prune \) | sort | sudo xargs rm -r
sudo chown -hR mattermost:mattermost /tmp/mattermost-upgrade/
sudo cp -an /tmp/mattermost-upgrade/. mattermost/
sudo rm -r /tmp/mattermost-upgrade/
sudo systemctl start mattermost
However, I can’t do this anymore because the service no longer starts up, and I cannot update the operating system either.
The database used is MySQL.
What would be the correct procedure to upgrade without issues?
Thanks in advance!