|
#!/bin/bash
|
|
# Set path to your gitea binary
|
|
gitea=/usr/local/bin/gitea
|
|
|
|
### NO EDITS BELOW HERE NEEDED ###
|
|
systemctl stop gitea.service
|
|
curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | grep -P ">
|
|
chmod +x $gitea
|
|
systemctl start gitea.service |