I wrote an upgrade script and want to share it

Hi there,

a few months ago I wanted to speed up the upgrade precedure of minor release upgrades, so I wrote a script for it.
I wanted to share it for quite some time, but didn’t get around to actually doing that. @it33 reminded me that it would be a good idea :slight_smile:

I put it into a gist: Upgradescript for Mattermost · GitHub

Example usage: ./mattermost_upgrade.sh 3.4.0

As of now the script has some limitations:

  • it does not backup the database
  • it is only useful for minor updates; major releases that require manual user actions can not be handled correctly

These limitations stem from my scenario, where a database backup is not necessary. I might get around to implementing it at some point, but obviously everyone is welcome to improve the script :slight_smile:.

Have a nice day!

Great work, thanks @reach3r!

Really helpful, I think this starting point would be really appreciate by the community.

By the way, if you’re interested in joining the Installers and Images channel, we’re discussing the path to getting to sudo apt-get install mattermost if you’re interested in listening in or discussing.