diff options
author | L. Bradley LaBoon | 2016-04-05 10:59:12 -0400 |
---|---|---|
committer | L. Bradley LaBoon | 2016-04-05 10:59:12 -0400 |
commit | f5a9ab21d9addaffc834161939ef83141ccdf94a (patch) | |
tree | b7ae1531e4bf97b58b6beff74bb807fcbc79e45e /splunk.install | |
parent | cb8c0e8b37a7e6f574f4321fd6e1849a5b9f13f7 (diff) | |
download | aur-f5a9ab21d9addaffc834161939ef83141ccdf94a.tar.gz |
Updated to 6.4.0. Also cleaned up the PKGBUILD and install file
Diffstat (limited to 'splunk.install')
-rw-r--r-- | splunk.install | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/splunk.install b/splunk.install index c385869e97ea..0165a5f69d57 100644 --- a/splunk.install +++ b/splunk.install @@ -1,6 +1,6 @@ +SPLUNK_HOME="/opt/splunk" + pre_install() { - SPLUNK_HOME="/opt/splunk" - group_exists=no # Try to test for group existence in a 'modern' fashion if which getent >/dev/null; then @@ -23,8 +23,6 @@ pre_install() { } post_install() { - SPLUNK_HOME="/opt/splunk" - if [ ! -f "$SPLUNK_HOME/etc/splunk-launch.conf" ]; then sed "s%# SPLUNK_HOME=.*%SPLUNK_HOME=$SPLUNK_HOME%g" "$SPLUNK_HOME/etc/splunk-launch.conf.default" > "$SPLUNK_HOME/etc/splunk-launch.conf" fi @@ -53,7 +51,6 @@ post_install() { } pre_upgrade() { - SPLUNK_HOME="/opt/splunk" echo "Attempting to stop the installed Splunk Server..." $SPLUNK_HOME/bin/splunk stop systemctl stop splunk @@ -80,8 +77,6 @@ pre_upgrade() { } post_upgrade() { - SPLUNK_HOME="/opt/splunk" - # Build the post-upgrade message in steps: touch "$SPLUNK_HOME/ftr" echo "-------------------------------------------------------------------------" > "$SPLUNK_HOME/ftr" @@ -106,15 +101,12 @@ post_upgrade() { } pre_remove() { - SPLUNK_HOME="/opt/splunk" echo "Attempting to stop the installed Splunk Server..." $SPLUNK_HOME/bin/splunk stop systemctl stop splunk } post_remove() { - SPLUNK_HOME="/opt/splunk" - # Remove any remaining files rm -rf $SPLUNK_HOME |