From 0886e2da9b0763a545ed8077911ba5e651acc889 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Thu, 14 Mar 2019 20:13:26 -0500 Subject: [PATCH] Pseudocode for download and post download verify --- update-gitea.pl | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/update-gitea.pl b/update-gitea.pl index b3038bf..873641d 100644 --- a/update-gitea.pl +++ b/update-gitea.pl @@ -101,26 +101,24 @@ if ( $tag gt $gitea_current_version ) { # Get the download_url from the array -# Download version specified +# Download version specified\ + # $gitea_bin + # wget + + # Unzip downloaded gitea + # unxz $GITEA_XZ # Stop service -# Backup current gitea mv -# $gitea_bin +# Copy the downloaded binary to gitea and chmod it 750 +# Change owner unless we run this as user gitea +# Start service +# verify systemctld status is good +# If good then remove downloaded binary and old backup set install_status=success ELSE remove "gitea" and restore from backup and set install_status=fail -# wget - -# Unzip downloaded gitea -# unxz $GITEA_XZ - -# Change perms unless we run this as user gitea - -# Restart gitea - -# Test - -# Email +# Notification +# $install_status message