mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Don't use state; set IFS
This commit is contained in:
@@ -6,9 +6,6 @@
|
|||||||
|
|
||||||
. /usr/sbin/so-elastic-fleet-common
|
. /usr/sbin/so-elastic-fleet-common
|
||||||
|
|
||||||
RETURN_CODE=0
|
|
||||||
|
|
||||||
if [ ! -f /opt/so/state/eaintegrationupgrade.txt ]; then
|
|
||||||
# Let's snag a cookie from Kibana
|
# Let's snag a cookie from Kibana
|
||||||
SESSIONCOOKIE=$(curl -s -K /opt/so/conf/elasticsearch/curl.config -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')
|
SESSIONCOOKIE=$(curl -s -K /opt/so/conf/elasticsearch/curl.config -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')
|
||||||
|
|
||||||
@@ -42,10 +39,4 @@ if [ ! -f /opt/so/state/eaintegrationupgrade.txt ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
if [[ "$RETURN_CODE" != "1" ]]; then
|
|
||||||
touch /opt/so/state/eaintegrationupgrade.txt
|
|
||||||
fi
|
|
||||||
echo
|
echo
|
||||||
else
|
|
||||||
exit $RETURN_CODE
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user