Skip to content

Instantly share code, notes, and snippets.

@onfire4g05
Created November 5, 2019 21:14
Show Gist options
  • Save onfire4g05/4326e00fdd274943fdbd0cda305a64e1 to your computer and use it in GitHub Desktop.
Save onfire4g05/4326e00fdd274943fdbd0cda305a64e1 to your computer and use it in GitHub Desktop.
Simple Gitea upgrade script
#!/bin/bash
VERSION=$1
FILE_NAME="gitea-$VERSION-linux-arm64"
FULL_PATH="https://dl.gitea.io/gitea/$VERSION/$FILE_NAME"
cd ./versions
wget $FULL_PATH
cd ..
rm ./gitea
chmod 0755 ./versions/$FILE_NAME
ln -s ./versions/$FILE_NAME ./gitea
service gitea restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment