iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix false positive conflink detection
[distro-setup]
/
mastodon-upgrade
diff --git
a/mastodon-upgrade
b/mastodon-upgrade
index 00cda2acc1d920d8dc85ae14cf207c169e194f13..a60604980b105601388d768829caf69f4292fed3 100755
(executable)
--- a/
mastodon-upgrade
+++ b/
mastodon-upgrade
@@
-6,9
+6,9
@@
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
# based on
# https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Docker-Guide.md
# based on
# https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Docker-Guide.md
-[[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@"
+if [[ $EUID == 0 ]]; then echo "$0: error, do not run as root"; exit 1; fi
-cd /home/ian/mastodon
+cd /home/ian
k
/mastodon
git fetch
git stash
git checkout $(git tag | grep -v rc | tail -n1)
git fetch
git stash
git checkout $(git tag | grep -v rc | tail -n1)