Add steps to upgrade to 1.21.1 from 1.21.0

This commit is contained in:
James Skemp 2023-12-04 07:15:33 -06:00
parent a266911723
commit a1042c61c5
1 changed files with 20 additions and 0 deletions

View File

@ -409,3 +409,23 @@ Updates came pretty fast, so I ran all three of these one after the other.
- then `q`
- Should be active (running).
12. After some period of time, delete the backup file.
## Updating 1.21.0 to 1.21.1
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 <old-backup-file>`
- `chmod a=r <new-backup-file>`
5. `exit`
6. `VERSION=1.21.1 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64`
7. `sudo systemctl status gitea`
- then `q`
- Should be inactive/dead.
8. `sudo mv gitea /usr/local/bin/gitea`
9. `sudo chmod +x /usr/local/bin/gitea`
10. `sudo systemctl restart gitea`
11. `sudo systemctl status gitea`
- then `q`
- Should be active (running).
12. After some period of time, delete the backup file.