This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## upgrade_mattermost.sh | |
# | |
## About | |
# | |
# This script was an attempt to automate upgrading Mattermost. Note the past | |
# tense. | |
# | |
## Usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |