Initial commit of perl script to perform gitea updates. Logic to compare current version with latest published version is complete

This commit is contained in:
Tracey Clark 2019-03-04 13:52:34 -06:00
commit 5c4db395a1
2 changed files with 100 additions and 29 deletions

View file

@ -1,29 +0,0 @@
#!/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