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 # Get the download_url from the array
# Download version specified # Download version specified\
# Stop service
# Backup current gitea mv
# $gitea_bin # $gitea_bin
# wget # wget
# Unzip downloaded gitea # Unzip downloaded gitea
# unxz $GITEA_XZ # unxz $GITEA_XZ
# Change perms unless we run this as user gitea # Stop service
# Restart gitea # Copy the downloaded binary to gitea and chmod it 750
# Test # Change owner unless we run this as user gitea
# Email # 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
# Notification
# $install_status message