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
- Host: GitHub
- URL: https://github.com/hobbyquaker/mattermost-update
- Owner: hobbyquaker
- License: mit
- Created: 2017-06-25T16:40:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T20:33:50.000Z (about 7 years ago)
- Last Synced: 2025-03-06T11:19:41.994Z (11 months ago)
- Topics: mattermost, script, update, upgrade
- Language: Shell
- Size: 11.7 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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