Merge pull request #22 from Heavybullets8/container-image-ignore

-Don't send container Image updates for post processing
This commit is contained in:
Heavybullets8 2022-09-04 23:02:07 +00:00 committed by GitHub
commit 1784c8ba5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -67,7 +67,7 @@ echo "-r | Roll-back applications if they fail to update"
echo "-i | Add application to ignore list, one by one, see example below." echo "-i | Add application to ignore list, one by one, see example below."
echo "-S | Shutdown applications prior to updating" echo "-S | Shutdown applications prior to updating"
echo "-v | verbose output" echo "-v | verbose output"
echo "-t 500| Set a custom timeout in seconds when checking if either an App or Mountpoint correctly Started, Stopped or (un)Mounted. Defaults to 500 seconds" echo "-t 500| The amount of time HS will wait for an application to be ACTIVE. Defaults to 500 seconds"
echo echo
echo "Additional Options" echo "Additional Options"
echo "------------------" echo "------------------"

View File

@ -112,7 +112,11 @@ fi
# Send app through update function # Send app through update function
[[ "$verbose" == "true" ]] && echo_array+=("Updating..") [[ "$verbose" == "true" ]] && echo_array+=("Updating..")
if update_app ;then if update_app ;then
echo_array+=("Updated\n$old_full_ver\n$new_full_ver") if [[ $old_full_ver == "$new_full_ver" ]]; then
echo_array+=("Updated Container Image")
else
echo_array+=("Updated\n$old_full_ver\n$new_full_ver")
fi
else else
echo_array+=("Failed to update\nManual intervention may be required") echo_array+=("Failed to update\nManual intervention may be required")
echo_array echo_array
@ -123,6 +127,10 @@ fi
if grep -qs "^$app_name,true" external_services ; then if grep -qs "^$app_name,true" external_services ; then
echo_array echo_array
return return
# If app is container image update, dont send for post processing
elif [[ $old_full_ver == "$new_full_ver" ]]; then
echo_array
return
else else
post_process post_process
fi fi