Merge pull request #11128 from Security-Onion-Solutions/2.4/main

Merge in hotfix
This commit is contained in:
Mike Reeves
2023-08-21 16:29:40 -04:00
committed by GitHub
11 changed files with 37 additions and 22 deletions

View File

@@ -582,6 +582,9 @@ upgrade_check() {
# Let's make sure we actually need to update.
NEWVERSION=$(cat $UPDATE_DIR/VERSION)
HOTFIXVERSION=$(cat $UPDATE_DIR/HOTFIX)
if [ ! -f /etc/sohotfix ]; then
touch /etc/sohotfix
fi
[[ -f /etc/sohotfix ]] && CURRENTHOTFIX=$(cat /etc/sohotfix)
if [ "$INSTALLEDVERSION" == "$NEWVERSION" ]; then
echo "Checking to see if there are hotfixes needed"
@@ -673,15 +676,15 @@ verify_latest_update_script() {
}
# Keeping this block in case we need to do a hotfix that requires salt update
#apply_hotfix() {
apply_hotfix() {
# if [[ "$INSTALLEDVERSION" == "2.3.90" ]] ; then
# fix_wazuh
# elif [[ "$INSTALLEDVERSION" == "2.3.110" ]] ; then
# 2_3_10_hotfix_1
# else
# echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)"
echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)"
# fi
#}
}
#upgrade salt to 3004.1