Pseudocode for download and post download verify
This commit is contained in:
parent
45a8527882
commit
0886e2da9b
1 changed files with 13 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue