mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #12213 from Security-Onion-Solutions/reyesj2-patch-sl
Update soup
This commit is contained in:
@@ -405,6 +405,7 @@ preupgrade_changes() {
|
|||||||
[[ "$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
|
[[ "$INSTALLEDVERSION" == 2.4.30 ]] && up_to_2.4.40
|
||||||
|
[[ "$INSTALLEDVERSION" == 2.4.40 ]] && up_to_2.4.50
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -419,6 +420,7 @@ postupgrade_changes() {
|
|||||||
[[ "$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
|
[[ "$POSTVERSION" == 2.4.30 ]] && post_to_2.4.40
|
||||||
|
[[ "$POSTVERSION" == 2.4.40 ]] && post_to_2.4.50
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -470,6 +472,11 @@ post_to_2.4.40() {
|
|||||||
POSTVERSION=2.4.40
|
POSTVERSION=2.4.40
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_to_2.4.50() {
|
||||||
|
echo "Nothing to apply"
|
||||||
|
POSTVERSION=2.4.50
|
||||||
|
}
|
||||||
|
|
||||||
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."
|
||||||
@@ -570,6 +577,14 @@ up_to_2.4.40() {
|
|||||||
INSTALLEDVERSION=2.4.40
|
INSTALLEDVERSION=2.4.40
|
||||||
}
|
}
|
||||||
|
|
||||||
|
up_to_2.4.50() {
|
||||||
|
echo "Creating additional pillars.."
|
||||||
|
touch /opt/so/saltstack/local/pillar/stig/adv_stig.sls
|
||||||
|
touch /opt/so/saltstack/local/pillar/stig/soc_stig.sls
|
||||||
|
|
||||||
|
INSTALLEDVERSION=2.4.50
|
||||||
|
}
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user