From 112ef045acc11b17b5e99cfb3de00d4ee70d91ca Mon Sep 17 00:00:00 2001 From: Robert Castley Date: Thu, 6 Nov 2025 21:34:35 +0000 Subject: [PATCH] Fixed issue with cleaning up downloaded .deb file --- install/splunk-enterprise-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/splunk-enterprise-install.sh b/install/splunk-enterprise-install.sh index 27885f7fb..9b841b9d3 100644 --- a/install/splunk-enterprise-install.sh +++ b/install/splunk-enterprise-install.sh @@ -42,8 +42,10 @@ while true; do esac done +msg_info "Getting Splunk Enterprise download link" DOWNLOAD_URL=$(curl -s "https://www.splunk.com/en_us/download/splunk-enterprise.html" | grep -o 'data-link="[^"]*' | sed 's/data-link="//' | grep "https.*products/splunk/releases" | grep "\.deb$") RELEASE=$(echo "$DOWNLOAD_URL" | sed 's|.*/releases/\([^/]*\)/.*|\1|') +msg_ok "Got Splunk Enterprise v${RELEASE} download link" msg_info "Setup Splunk Enterprise" $STD curl -fsSL -o "splunk-enterprise.deb" "$DOWNLOAD_URL" || { @@ -51,7 +53,7 @@ $STD curl -fsSL -o "splunk-enterprise.deb" "$DOWNLOAD_URL" || { exit 1 } $STD dpkg -i "splunk-enterprise.deb" -rm -f "$DEB_FILE" +rm -f "splunk-enterprise.deb" msg_ok "Setup Splunk Enterprise v${RELEASE}" msg_info "Creating Splunk admin user"