Skip to content

Instantly share code, notes, and snippets.

@erochest
Created February 17, 2017 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erochest/a0f104998b0b3f25bb70dd67ff767de5 to your computer and use it in GitHub Desktop.
Save erochest/a0f104998b0b3f25bb70dd67ff767de5 to your computer and use it in GitHub Desktop.
Upgrade script for Omeka
#!/bin/bash
TAG=$(git tag -l | tail -1)
echo "Upgrading to $TAG..."
echo
git stash save $TAG
git fetch origin
git checkout $TAG
git submodule update
git stash pop $TAG
echo
echo "Done"
echo "Please log in to http://cnhi-milio.nursing.virginia.edu/admin/."
echo "You may need to upgrade the database or some plugins."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment