mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #4479 from Security-Onion-Solutions/hotfix/soup_salt
Hotfix/soup salt
This commit is contained in:
@@ -247,13 +247,6 @@ masterunlock() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
preupgrade_changes_2.3.50_repo() {
|
|
||||||
# We made repo changes in 2.3.50 and this prepares for that on upgrade
|
|
||||||
echo "Checking to see if 2.3.50 repo changes are needed."
|
|
||||||
|
|
||||||
[[ "$INSTALLEDVERSION" == 2.3.30 || "$INSTALLEDVERSION" == 2.3.40 ]] && up_2.3.3X_to_2.3.50_repo
|
|
||||||
}
|
|
||||||
|
|
||||||
preupgrade_changes() {
|
preupgrade_changes() {
|
||||||
# This function is to add any new pillar items if needed.
|
# This function is to add any new pillar items if needed.
|
||||||
echo "Checking to see if changes are needed."
|
echo "Checking to see if changes are needed."
|
||||||
@@ -437,8 +430,8 @@ up_2.3.2X_to_2.3.30() {
|
|||||||
INSTALLEDVERSION=2.3.30
|
INSTALLEDVERSION=2.3.30
|
||||||
}
|
}
|
||||||
|
|
||||||
up_2.3.3X_to_2.3.50_repo() {
|
upgrade_to_2.3.50_repo() {
|
||||||
echo "Performing 2.3.50 repo actions."
|
echo "Performing repo changes."
|
||||||
if [[ "$OS" == "centos" ]]; then
|
if [[ "$OS" == "centos" ]]; then
|
||||||
# Import GPG Keys
|
# Import GPG Keys
|
||||||
gpg_rpm_import
|
gpg_rpm_import
|
||||||
@@ -744,7 +737,7 @@ else
|
|||||||
systemctl stop salt-master
|
systemctl stop salt-master
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
preupgrade_changes_2.3.50_repo
|
upgrade_to_2.3.50_repo
|
||||||
|
|
||||||
# Does salt need upgraded. If so update it.
|
# Does salt need upgraded. If so update it.
|
||||||
if [ "$UPGRADESALT" == "1" ]; then
|
if [ "$UPGRADESALT" == "1" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user