mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Update Script help
This commit is contained in:
@@ -121,15 +121,8 @@ pillar_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 pillar changes are needed."
|
echo "Checking to see if pillar changes are needed."
|
||||||
|
|
||||||
# Move baseurl in global.sls
|
[[ "$INSTALLEDVERSION" =~ rc.1 ]] && rc1_to_rc2
|
||||||
if [[ "$INSTALLEDVERSION" =~ rc.1 ]]; then
|
[[ "$INSTALLEDVERSION" =~ rc.2 ]] && rc2_to_rc3
|
||||||
rc1_to_rc2
|
|
||||||
rc2_to_rc3
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$INSTALLEDVERSION" =~ rc.2 ]]; then
|
|
||||||
rc2_to_rc3
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,13 +163,20 @@ rc1_to_rc2() {
|
|||||||
curl -XPUT http://localhost:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"'$NAME'": {"skip_unavailable": "true", "seeds": ["'$EHOSTNAME':9300"]}}}}}'
|
curl -XPUT http://localhost:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"'$NAME'": {"skip_unavailable": "true", "seeds": ["'$EHOSTNAME':9300"]}}}}}'
|
||||||
done </tmp/nodes.txt
|
done </tmp/nodes.txt
|
||||||
|
|
||||||
|
INSTALLEDVERSION=rc.2
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rc2_to_rc3() {
|
rc2_to_rc3() {
|
||||||
|
|
||||||
# move location of local.rules
|
# move location of local.rules
|
||||||
cp /opt/so/saltstack/default/salt/idstools/localrules/local.rules /opt/so/saltstack/local/salt/idstools/local.rules
|
cp /opt/so/saltstack/default/salt/idstools/localrules/local.rules /opt/so/saltstack/local/salt/idstools/local.rules
|
||||||
mv /opt/so/saltstack/default/salt/idstools/localrules/local.rules /opt/so/saltstack/default/salt/idstools/localrules/local.rules.USE.THE.FILE.IN.LOCAL
|
|
||||||
|
if [ -f /opt/so/saltstack/local/salt/idstools/localrules/local.rules ]; then
|
||||||
|
cat /opt/so/saltstack/local/salt/idstools/localrules/local.rules >> /opt/so/saltstack/local/salt/idstools/local.rules
|
||||||
|
fi
|
||||||
|
rm -rf /opt/so/saltstack/local/salt/idstools/localrules
|
||||||
|
rm -rf /opt/so/saltstack/default/salt/idstools/localrules
|
||||||
|
|
||||||
# Rename ZEEKVERSION to MDENGINE
|
# Rename ZEEKVERSION to MDENGINE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user