Updating Gitea
See https://docs.gitea.io/en-us/install-from-binary/#updating-to-a-new-version for more information.
The following covers what I've done for my instance.
Create a backup
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
exit
Update 1.16.8 to 1.16.9
VERSION=1.16.9
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Stop if needed/didn't backup.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- After some period of time, delete the backup file.
Updating 1.16.9 to 1.17.1
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
exit
VERSION=1.17.1
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- After some period of time, delete the backup file.
Updating 1.17.1 to 1.17.2
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
exit
VERSION=1.17.2
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.17.2 to 1.17.3
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
exit
VERSION=1.17.3
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Gitea LFS config also updated:
sudo vim /etc/gitea/app.ini
- Move server.LFS_CONTENT_PATH to a new lfs.PATH (
/var/lib/gitea/data/lfs
). sudo systemctl restart gitea
sudo systemctl status gitea
Updating 1.17.3 to 1.17.4
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.17.4
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.17.4 to 1.18.0
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.18.0
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- 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.
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.18.1
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- Test the site.
sudo systemctl stop gitea
VERSION=1.18.2
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
- Test.
sudo systemctl stop gitea
VERSION=1.18.3
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
- Test.
- After some period of time, delete the backup file.
Updating 1.18.3 to 1.18.5
1.18.4 included a bug.
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.18.5
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.18.5 to 1.19.0
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.19.0
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
1.19.0 Indexer Updates
2023/03/22 21:46:34 ...s/setting/setting.go:614:deprecatedSetting() [E] Deprecated fallback
[indexer]
UPDATE_BUFFER_LEN
present. Use[queue.issue_indexer]
LENGTH
instead. This fallback will be removed in v1.19.0
- Remove
UPDATE_BUFFER_LEN
from[indexer]
. - If not the default of 20 (https://docs.gitea.io/en-us/config-cheat-sheet/#queue-queue-and-queue), follow the message to set the correct length property.
- In my case I had the default of 20, so I dropped it entirely.
Updating 1.19.0 to 1.19.1
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.19.1
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.19.1 to 1.19.2
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.19.2
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.19.2 to 1.19.3
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.19.3
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.19.3 to 1.19.4
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.19.4
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.19.4 to 1.20.1
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.20.0
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- Test the site.
sudo systemctl stop gitea
VERSION=1.20.1
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.20.1 to 1.20.2
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.20.2
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- Should be active (running).
- After some period of time, delete the backup file.
sudo vim /etc/gitea/app.ini
- Remove
[log].ROUTER = console
option as it's currently the default.- This setting has otherwise moved to a new location.
sudo systemctl restart gitea
Updating 1.20.2 to 1.20.3
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.20.3
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
thenq
- Should be inactive/dead.
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
thenq
- Should be active (running).
- After some period of time, delete the backup file.
- Verify that
[storage].PATH
is not set viacat /etc/gitea/app.ini
.
Updating 1.20.3 to 1.20.4
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.20.4
sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.20.4 to 1.20.5
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.20.5 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.20.5 to 1.21.0
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.0 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.21.0 to 1.21.1
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.1 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.21.1 to 1.21.2
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.2 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea
sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.21.2 to 1.21.3
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.3 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.21.3 to 1.21.4
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.4 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.21.4 to 1.21.5
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.5 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl status gitea
- then
q
- Should be inactive/dead.
- then
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl status gitea
- then
q
- Should be active (running).
- then
- After some period of time, delete the backup file.
Updating 1.21.5 to 1.21.6
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.6 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.21.6 to 1.21.7
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.7 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.21.7 to 1.21.10
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.10 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.21.10 to 1.21.11
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.21.11 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.21.11 to 1.22.0
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.22.0 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.22.0 to 1.22.1
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.22.1 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.22.1 to 1.22.2
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.22.2 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.22.2 to 1.22.3
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.22.3 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.22.3 to 1.22.4
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.22.4 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.
Updating 1.22.4 to 1.22.6
Version 1.22.5 was quickly replaced.
sudo systemctl stop gitea
sudo su - git
gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp
ls -l --block-size=M
rm <old-backup-file>
chmod a=r <new-backup-file>
exit
VERSION=1.22.6 && sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo systemctl is-active gitea
- Should be inactive.
sudo mv gitea /usr/local/bin/gitea && sudo chmod +x /usr/local/bin/gitea
sudo systemctl restart gitea
sudo systemctl is-active gitea
- Should be active (running).
- After some period of time, delete the backup file.