Merge pull request #22 from Heavybullets8/container-image-ignore
-Don't send container Image updates for post processing
This commit is contained in:
commit
1784c8ba5d
@ -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 "------------------"
|
||||||
|
@ -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
|
||||||
|
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")
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user