Merge pull request #9998 from Security-Onion-Solutions/dougburks-patch-1

Update soup for 2.3.230
This commit is contained in:
Doug Burks
2023-03-24 12:38:39 -04:00
committed by GitHub

View File

@@ -554,6 +554,8 @@ preupgrade_changes() {
[[ "$INSTALLEDVERSION" == 2.3.190 ]] && up_to_2.3.200
[[ "$INSTALLEDVERSION" == 2.3.200 ]] && up_to_2.3.210
[[ "$INSTALLEDVERSION" == 2.3.210 ]] && up_to_2.3.220
[[ "$INSTALLEDVERSION" == 2.3.220 ]] && up_to_2.3.230
true
}
@@ -580,6 +582,7 @@ postupgrade_changes() {
[[ "$POSTVERSION" == 2.3.190 ]] && post_to_2.3.200
[[ "$POSTVERSION" == 2.3.200 ]] && post_to_2.3.210
[[ "$POSTVERSION" == 2.3.210 ]] && post_to_2.3.220
[[ "$POSTVERSION" == 2.3.220 ]] && post_to_2.3.230
true
}
@@ -713,6 +716,11 @@ post_to_2.3.220() {
POSTVERSION=2.3.220
}
post_to_2.3.230() {
echo "Nothing to do for .230"
POSTVERSION=2.3.230
}
stop_salt_master() {
# kill all salt jobs across the grid because the hang indefinitely if they are queued and salt-master restarts
set +e
@@ -1053,6 +1061,11 @@ up_to_2.3.220() {
INSTALLEDVERSION=2.3.220
}
up_to_2.3.230() {
echo "Upgrading to 2.3.230"
INSTALLEDVERSION=2.3.230
}
verify_upgradespace() {
CURRENTSPACE=$(df -BG / | grep -v Avail | awk '{print $4}' | sed 's/.$//')
if [ "$CURRENTSPACE" -lt "10" ]; then