mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Remove RETURN_CODE
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
. /usr/sbin/so-common
|
. /usr/sbin/so-common
|
||||||
|
|
||||||
RETURN_CODE=0
|
|
||||||
ELASTICSEARCH_HOST=$1
|
ELASTICSEARCH_HOST=$1
|
||||||
ELASTICSEARCH_PORT=9200
|
ELASTICSEARCH_PORT=9200
|
||||||
|
|
||||||
@@ -30,11 +29,4 @@ if [ ! -f /opt/so/state/espipelines.txt ]; then
|
|||||||
|
|
||||||
cd - >/dev/null
|
cd - >/dev/null
|
||||||
|
|
||||||
if [[ "$RETURN_CODE" != "1" ]]; then
|
touch /opt/so/state/espipelines.txt
|
||||||
touch /opt/so/state/espipelines.txt
|
|
||||||
else
|
|
||||||
echo "Errors were detected. This script will run again during the next application of the state."
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
exit $RETURN_CODE
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user