Skip to content

Commit d10fdcb

Browse files
committed
Debugging unit 5
1 parent 5675c80 commit d10fdcb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Scripts/unit5_lab.sh

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ none='\033[0m'
55
scripts_repo="https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${1:-"main"}/Files/"
66

77
echo "[UNIT 5 LAB] Starting script..."
8+
echo -e "Repo: ${scripts_repo}"
89

910
if sudo /opt/splunk/bin/splunk status | grep 'is running'; then
1011
echo -e "${green}[UNIT 5 LAB]${none} Splunk is already installed."
@@ -64,6 +65,7 @@ wget "${scripts_repo}unit5/webauth.csv" -O "$HOME/tmp_splunk/webauth.csv" || all
6465
if [ "$all_success" = false ]; then
6566
echo -e "${red}[UNIT 1 LAB]${none} Error: Could not download Splunk files to $HOME/tmp_splunk folder"
6667
echo -e "${red}[UNIT 1 LAB]${none} Try downloading manually from ${scripts_repo}unit5 and placing in ~/tmp_splunk."
68+
rm -rf "$HOME/tmp_splunk"
6769
exit 1
6870
fi
6971

Scripts/unit5_project.sh

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ none='\033[0m'
55
scripts_repo="https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${1:-"main"}/Files/"
66

77
echo "[UNIT 5 PROJECT] Starting script..."
8+
echo -e "Repo: ${scripts_repo}"
89

910
# Ensure the tmp_splunk directory exists
1011
if [ ! -d "$HOME/tmp_splunk" ]; then
@@ -24,6 +25,7 @@ wget "${scripts_repo}unit5/BlueCoatProxy01.csv" -O "$HOME/tmp_splunk/BlueCoatPro
2425
if [ "$all_success" = false ]; then
2526
echo -e "${red}[UNIT 1 LAB]${none} Error: Could not download Splunk files to $HOME/tmp_splunk folder"
2627
echo -e "${red}[UNIT 1 LAB]${none} Try downloading manually from ${scripts_repo}unit5 and placing in ~/tmp_splunk."
28+
rm -rf "$HOME/tmp_splunk"
2729
exit 1
2830
fi
2931

0 commit comments

Comments
 (0)