diff --git a/src/hosting/updating-gitea.md b/src/hosting/updating-gitea.md index 8e8045f..75d4c77 100644 --- a/src/hosting/updating-gitea.md +++ b/src/hosting/updating-gitea.md @@ -557,3 +557,20 @@ Updates came pretty fast, so I ran all three of these one after the other. 10. `sudo systemctl is-active gitea` - Should be active (running). 11. After some period of time, delete the backup file. + +## Updating 1.21.10 to 1.21.11 +1. `sudo systemctl stop gitea` +2. `sudo su - git` +3. `gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp` +4. `ls -l --block-size=M` + - `rm ` + - `chmod a=r ` +5. `exit` +6. `VERSION=1.21.11 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64` +7. `sudo systemctl is-active gitea` + - Should be inactive. +8. `sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea` +9. `sudo systemctl restart gitea` +10. `sudo systemctl is-active gitea` + - Should be active (running). +11. After some period of time, delete the backup file.