From 9267260aadf7f52af05ec63fb418a5880a0b9766 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 3 Mar 2019 21:36:56 -0600 Subject: [PATCH] Initial commit of script to update gitea with pseudocode --- update-gitea.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 update-gitea.sh diff --git a/update-gitea.sh b/update-gitea.sh new file mode 100644 index 0000000..1715f58 --- /dev/null +++ b/update-gitea.sh @@ -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