prevent exit if minion doesnt respond

This commit is contained in:
m0duspwnens
2022-01-06 16:17:51 -05:00
parent cd590b894a
commit 5ecb63f5cf

View File

@@ -663,7 +663,9 @@ up_to_2.3.90() {
up_to_2.3.100() { up_to_2.3.100() {
echo "Updating to Security Onion to 2.3.100" echo "Updating to Security Onion to 2.3.100"
echo "Populating the mine with network.ip_addrs pillar.host.mainint for each host." echo "Populating the mine with network.ip_addrs pillar.host.mainint for each host."
set +e
salt \* cmd.run cmd='MAININT=$(salt-call pillar.get host:mainint --out=newline_values_only) && salt-call mine.send name=network.ip_addrs interface="$MAININT"' salt \* cmd.run cmd='MAININT=$(salt-call pillar.get host:mainint --out=newline_values_only) && salt-call mine.send name=network.ip_addrs interface="$MAININT"'
set -e
fix_wazuh fix_wazuh
} }