Simple script for comfortable update of Mattermost
cd /usr/local/bin
wget https://raw.githubusercontent.com/hobbyquaker/mattermost-update/master/mmupdate.sh
chmod a+x mmupdate.sh
In the first few lines of the script you possibly have to change the variable MM_PATH
(default is `/opt/mattermost).
This script utilizes jq, wget and sudo, so these need to be installed as prerequisite.
Copy the URL of the latest Mattermost tarball from http://about.mattermost.com/download/ and call mmupdate.sh with the path of you Mattermost installation and the tarball url as parameters.
Example:
mmupdate.sh /opt/mattermost https://releases.mattermost.com/3.10.0/mattermost-3.10.0-linux-amd64.tar.gz
- Backup of MySQL Database (until now only Postgres is implemented)
- More testing
- Nicer console output (e.g. colored unicode checkmarks)?
- Fully automated update: another script that checks the Mattermost webpage for updates and calls mmupdate.sh
- Omit data dir backup if FileSettings.DriverName != "local"
Pull Requests Welcome! :-)
MIT © Sebastian Raff