File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ LOCAL=$(find $SPLUNK_HOME/etc/system/local -type f -name deploymentclient.conf |
5
5
RESTART_CHECK=$SPLUNK_HOME /etc/restartds.txt
6
6
7
7
# ## Check variables and take action accordingly
8
- if [ $DEPLOYED_APP = " 0" ]; then
8
+ if [ $LOCAL = " 1 " ] & [ $ DEPLOYED_APP = " 0" ]; then
9
9
echo $( date -R) $HOSTNAME : No deploymentclient.conf detected in \$ SPLUNK_HOME/etc/apps. Bailing out so the fowarder doesn\' t get orphaned.
10
10
exit
11
- elif [ $LOCAL = " 1" ]; then
11
+ elif [ $LOCAL = " 1" ] & [ $DEPLOYED_APP = " 1 " ] ; then
12
12
# Remove the deploymentclient.conf from $SPLUNK_HOME/etc/system/local
13
13
rm -f $SPLUNK_HOME /etc/system/local/deploymentclient.conf > /dev/null 2>&1
14
14
echo $( date -R) $HOSTNAME : Removed deploymentclient.conf from local system.
You can’t perform that action at this time.
0 commit comments