Add Gitea upgrade info from 1.18.0 to 1.18.3
This commit is contained in:
parent
8f65340d48
commit
0c2fccd5d3
|
@ -269,6 +269,41 @@ Gitea LFS config also updated:
|
|||
- Should be active (running).
|
||||
13. After some period of time, delete the backup file.
|
||||
|
||||
#### Updating 1.18.0 to 1.18.3
|
||||
Updates came pretty fast, so I ran all three of these one after the other.
|
||||
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.18.1`
|
||||
7. `sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64`
|
||||
8. `sudo systemctl status gitea`
|
||||
- Should be inactive/dead.
|
||||
9. `sudo mv gitea /usr/local/bin/gitea`
|
||||
10. `sudo chmod +x /usr/local/bin/gitea`
|
||||
11. `sudo systemctl restart gitea`
|
||||
12. `sudo systemctl status gitea`
|
||||
- Should be active (running).
|
||||
13. Test the site.
|
||||
14. `sudo systemctl stop gitea`
|
||||
15. `VERSION=1.18.2`
|
||||
16. `sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64`
|
||||
17. `sudo mv gitea /usr/local/bin/gitea`
|
||||
18. `sudo chmod +x /usr/local/bin/gitea`
|
||||
19. `sudo systemctl restart gitea`
|
||||
20. Test.
|
||||
21. `sudo systemctl stop gitea`
|
||||
22. `VERSION=1.18.3`
|
||||
23. `sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64`
|
||||
24. `sudo mv gitea /usr/local/bin/gitea`
|
||||
25. `sudo chmod +x /usr/local/bin/gitea`
|
||||
26. `sudo systemctl restart gitea`
|
||||
27. Test.
|
||||
28. After some period of time, delete the backup file.
|
||||
|
||||
### Regular backups
|
||||
On the server:
|
||||
```bash
|
||||
|
|
Loading…
Reference in New Issue