Remove RETURN_CODE

This commit is contained in:
Wes
2023-11-07 21:06:35 +00:00
parent 1676c84f9c
commit 7772657b4b

View File

@@ -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