Skip to content

Instantly share code, notes, and snippets.

View icelander's full-sized avatar

Paul Rothrock icelander

View GitHub Profile
@icelander
icelander / upgrade_mattermost.sh
Last active March 23, 2021 22:23
An attempt to automate upgrades
#!/bin/bash
## upgrade_mattermost.sh
#
## About
#
# This script was an attempt to automate upgrading Mattermost. Note the past
# tense.
#
## Usage
@icelander
icelander / get_info.sh
Created November 6, 2020 21:47
Gets diagnostic information for Mattermost application servers
#!/bin/bash
timestamp_string=`date -Iseconds`
parent_dir=`pwd`
dirname="$HOSTNAME-$timestamp_string"
dirpath="$parent_dir/$dirname"
tarname="$dirname.tgz"
tarpath="$parent_dir/$tarname"
if [[ $1 == "--help" || $1 == "-h" ]]; then