Pseudocode for download and post download verify

This commit is contained in:
Tracey Clark 2019-03-14 20:13:26 -05:00
commit 0886e2da9b

View file

@ -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