Update soup

This commit is contained in:
Mike Reeves
2024-01-10 14:36:49 -05:00
committed by GitHub
parent 9159eab9fd
commit 3e13ea5c7a

View File

@@ -404,6 +404,7 @@ preupgrade_changes() {
[[ "$INSTALLEDVERSION" == 2.4.5 ]] && up_to_2.4.10 [[ "$INSTALLEDVERSION" == 2.4.5 ]] && up_to_2.4.10
[[ "$INSTALLEDVERSION" == 2.4.10 ]] && up_to_2.4.20 [[ "$INSTALLEDVERSION" == 2.4.10 ]] && up_to_2.4.20
[[ "$INSTALLEDVERSION" == 2.4.20 ]] && up_to_2.4.30 [[ "$INSTALLEDVERSION" == 2.4.20 ]] && up_to_2.4.30
[[ "$INSTALLEDVERSION" == 2.4.30 ]] && up_to_2.4.40
true true
} }
@@ -417,6 +418,7 @@ postupgrade_changes() {
[[ "$POSTVERSION" == 2.4.5 ]] && post_to_2.4.10 [[ "$POSTVERSION" == 2.4.5 ]] && post_to_2.4.10
[[ "$POSTVERSION" == 2.4.10 ]] && post_to_2.4.20 [[ "$POSTVERSION" == 2.4.10 ]] && post_to_2.4.20
[[ "$POSTVERSION" == 2.4.20 ]] && post_to_2.4.30 [[ "$POSTVERSION" == 2.4.20 ]] && post_to_2.4.30
[[ "$POSTVERSION" == 2.4.30 ]] && post_to_2.4.40
true true
} }
@@ -463,6 +465,11 @@ post_to_2.4.30() {
POSTVERSION=2.4.30 POSTVERSION=2.4.30
} }
post_to_2.4.40() {
echo "Nothing to apply"
POSTVERSION=2.4.40
}
repo_sync() { repo_sync() {
echo "Sync the local repo." echo "Sync the local repo."
su socore -c '/usr/sbin/so-repo-sync' || fail "Unable to complete so-repo-sync." su socore -c '/usr/sbin/so-repo-sync' || fail "Unable to complete so-repo-sync."
@@ -555,6 +562,12 @@ up_to_2.4.30() {
INSTALLEDVERSION=2.4.30 INSTALLEDVERSION=2.4.30
} }
up_to_2.4.40() {
echo "Nothing to do for 2.4.40"
INSTALLEDVERSION=2.4.40
}
determine_elastic_agent_upgrade() { determine_elastic_agent_upgrade() {
if [[ $is_airgap -eq 0 ]]; then if [[ $is_airgap -eq 0 ]]; then
update_elastic_agent_airgap update_elastic_agent_airgap