I have the wrapper script have some knowledge of the possibility it may be in a different place. For example:
APPBASEDIR="${SPLUNK_HOME}/etc/apps/my_app_name"
# masters push out apps to etc/slave-apps on indexers
APPBASEDIRSLAVE="${SPLUNK_HOME}/etc/slave-apps/my_app_name"
...
if [[ ! -e ${APPBASEDIR} ]]; then
log "Not deployed to ${APPBASEDIR}; checking for indexer deployment"
if [[ -e ${APPBASEDIRSLAVE} ]]; then
log "Updating basedir"
APPBASEDIR=${APPBASEDIRSLAVE}
else
log "Unable to find deployment."
exit 1
fi
fi
... View more