This is a custom script for updating my install of gogs
This script is not officially endorsed by anyone
Use this script at our own risk, etc, etc
My install may differ significantly from your own, so here are some points of note:
-
system user "git" exists solely to run gogs
-
all dependencies for gogs are installed in user git's $GOPATH
-
the only packages in user git's $GOPATH are for gogs
-
$GOPATH == /home/git/gocode
-
using the init script which with this directory scheme would be found at: /home/git/gocode/src/github.com/gogits/gogs/scripts/init/debian/gogs
-
that script is just in /etc/init.d/
-
notably however I have modified it to run the built "gogs" executable from /home/git/gocode/src/github.com/gogits/gogs/gogs
-
because I am bad with computers
-
this will update everything to be even with origin/master, without exception
Again, use at your own risk, but it might be an approach worth copying for deploying go applications with tons of dependencies and keeping them updated
~ tso Mon 07 Dec 2015 11:25:18 AM EST