An open API service indexing awesome lists of open source software.

https://github.com/hobbyquaker/mattermost-update

Simple script for comfortable update of Mattermost
https://github.com/hobbyquaker/mattermost-update

mattermost script update upgrade

Last synced: 8 months ago
JSON representation

Simple script for comfortable update of Mattermost

Awesome Lists containing this project

README

          

# mattermost-update

[![License][mit-badge]][mit-url]

> Simple script for comfortable update of Mattermost

## Install

```bash
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](https://stedolan.github.io/jq/), wget and sudo, so these need to be installed as prerequisite.

## Usage

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:
```bash
mmupdate.sh /opt/mattermost https://releases.mattermost.com/3.10.0/mattermost-3.10.0-linux-amd64.tar.gz
```

## Todo

* 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"

## Contributing

Pull Requests Welcome! :-)

## License

MIT © [Sebastian Raff](https://github.com/hobbyquaker)

[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: LICENSE