mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-03-25 05:52:41 +01:00
Add minimum version check and fix function call syntax in soup
Require at least Security Onion 2.4.210 before allowing upgrade. Fix determine_elastic_agent_upgrade() call syntax (remove parens).
This commit is contained in:
@@ -374,10 +374,17 @@ postupgrade_changes() {
|
||||
true
|
||||
}
|
||||
|
||||
check_minimum_version() {
|
||||
if [[ "$INSTALLEDVERSION" != "2.4.210" ]] && [[ ! "$INSTALLEDVERSION" =~ ^3\. ]]; then
|
||||
echo "You must be on at least Security Onion 2.4.210 to upgrade. Currently installed version: $INSTALLEDVERSION"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
### 3.0.0 Scripts ###
|
||||
|
||||
up_to_3.0.0() {
|
||||
determine_elastic_agent_upgrade()
|
||||
determine_elastic_agent_upgrade
|
||||
|
||||
INSTALLEDVERSION=3.0.0
|
||||
}
|
||||
@@ -1086,6 +1093,8 @@ main() {
|
||||
MINION_ROLE=$(lookup_role)
|
||||
echo "Found that Security Onion $INSTALLEDVERSION is currently installed."
|
||||
echo ""
|
||||
check_minimum_version
|
||||
|
||||
if [[ $is_airgap -eq 0 ]]; then
|
||||
# Let's mount the ISO since this is airgap
|
||||
airgap_mounted
|
||||
|
||||
Reference in New Issue
Block a user