Skip to content

Commit fbe9a50

Browse files
committed
Clean up tmp Splunk directory
1 parent 63ebaf3 commit fbe9a50

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Scripts/unit5_lab.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,7 @@ for CSV_FILE_PATH in "${!MAIN_DATA[@]}"; do
8080
sudo /opt/splunk/bin/splunk add oneshot "$CSV_FILE_PATH" -index "$MAIN_INDEX_NAME" -sourcetype csv -host "${MAIN_DATA[$CSV_FILE_PATH]}" -auth 'codepath:codepath'
8181
done
8282

83-
echo -e "${green}[UNIT 5 LAB]${none} Added data to Splunk."
83+
echo -e "${green}[UNIT 5 LAB]${none} Added data to Splunk."
84+
85+
# Clean up the tmp_splunk directory
86+
rm -rf "$HOME/tmp_splunk"

Scripts/unit5_project.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ for CSV_FILE_PATH in "${PATHCODE_CSV_FILE_PATHS[@]}"; do
3636
sudo /opt/splunk/bin/splunk add oneshot "$CSV_FILE_PATH" -index "$PATHCODE_INDEX_NAME" -sourcetype csv -host "$FILE_BASENAME" -auth 'codepath:codepath'
3737
done
3838

39-
echo -e "${green}[UNIT 5 Project]${none} Added data to Splunk."
39+
echo -e "${green}[UNIT 5 Project]${none} Added data to Splunk."
40+
41+
# Clean up the tmp_splunk directory
42+
rm -rf "$HOME/tmp_splunk"

0 commit comments

Comments
 (0)