Created
February 26, 2021 20:20
-
-
Save Finkregh/12926b9b6eb0f85da645960aefef373b to your computer and use it in GitHub Desktop.
shell script to download the latest gitea release
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
#!/usr/bin/env bash | |
DL_URL="$(curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | grep "browser_download_url.*arm-6\"" | cut -d \" -f 4)" | |
wget "${DL_URL}" -O /mnt/nfs/gitea/gitea | |
#chmod +x /mnt/nfs/gitea/gitea | |
sudo systemctl restart gitea |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment