Skip to content

Instantly share code, notes, and snippets.

@wmantly
Last active June 15, 2018 17:03
Show Gist options
  • Save wmantly/3e023b7624bf5e5f0e4b7a7436ff4ea9 to your computer and use it in GitHub Desktop.
Save wmantly/3e023b7624bf5e5f0e4b7a7436ff4ea9 to your computer and use it in GitHub Desktop.

Move to the gitea dir

cd /var/www/gitea/bin

Download the latest linux amd64 release

https://github.com/go-gitea/gitea/releases

wget https://github.com/go-gitea/gitea/releases/download/v<VERSION>/gitea-<VERSION>-linux-amd64

Make the new gitea version executable

chmod +x gitea-<VERSION>-linux-amd64

Move up to base dir

cd ..

Delete the current sys link

rm gitea

Create a sys link to the updated release file

ln -s bin/gitea-<VERSION>-linux-amd64 gitea

Restart the gitea service

service gitea restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment