Created
November 5, 2019 21:14
-
-
Save onfire4g05/4326e00fdd274943fdbd0cda305a64e1 to your computer and use it in GitHub Desktop.
Simple Gitea upgrade script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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