Committing gitea update script
This commit is contained in:
parent
b4e7c7d356
commit
9685dfafbb
1 changed files with 29 additions and 0 deletions
29
update-gitea.sh
Executable file
29
update-gitea.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Update gitea based on version provided
|
||||||
|
|
||||||
|
# Ask for version if not passed in #
|
||||||
|
|
||||||
|
# Download version specified
|
||||||
|
|
||||||
|
# Stop service
|
||||||
|
|
||||||
|
# Backup current gitea mv
|
||||||
|
|
||||||
|
# Build URL ex
|
||||||
|
# https://dl.gitea.io/gitea/1.7.3/gitea-1.7.3-linux-amd64.xz
|
||||||
|
# https://dl.gitea.io/gitea/$version/gitea-$version-linux-amd64.xz
|
||||||
|
|
||||||
|
# GITEA_XZ=gitea-$version-linux-amd64.xz
|
||||||
|
|
||||||
|
# wget
|
||||||
|
|
||||||
|
# Unzip downloaded gitea
|
||||||
|
# unxz $GITEA_XZ
|
||||||
|
|
||||||
|
# Change perms unless we run this as user gitea
|
||||||
|
|
||||||
|
# Restart gitea
|
||||||
|
|
||||||
|
# Test
|
||||||
|
|
||||||
|
# Email
|
||||||
Loading…
Add table
Add a link
Reference in a new issue