#!/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