Created
September 8, 2020 02:00
-
-
Save 6d61726b760a/3db92f29a5572a39fc0932ede4ab9e86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/profile.d/splunk.sh | |
if [ -d /opt/splunk ]; then | |
export SPLUNK_HOME="/opt/splunk" | |
export PATH=${PATH}:${SPLUNK_HOME}/bin | |
elif [ -d /opt/splunkforwarder ]; then | |
export SPLUNK_HOME="/opt/splunkforwarder" | |
export PATH=${PATH}:${SPLUNK_HOME}/bin | |
fi | |
# Skip all for noninteractive shells. | |
[ ! -t 0 ] && return | |
source ${SPLUNK_HOME}/bin/setSplunkEnv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment