File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ none='\033[0m'
5
5
scripts_repo=" https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${1:- " main" } /Files/"
6
6
7
7
echo " [UNIT 5 LAB] Starting script..."
8
+ echo -e " Repo: ${scripts_repo} "
8
9
9
10
if sudo /opt/splunk/bin/splunk status | grep ' is running' ; then
10
11
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
64
65
if [ " $all_success " = false ]; then
65
66
echo -e " ${red} [UNIT 1 LAB]${none} Error: Could not download Splunk files to $HOME /tmp_splunk folder"
66
67
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"
67
69
exit 1
68
70
fi
69
71
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ none='\033[0m'
5
5
scripts_repo=" https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${1:- " main" } /Files/"
6
6
7
7
echo " [UNIT 5 PROJECT] Starting script..."
8
+ echo -e " Repo: ${scripts_repo} "
8
9
9
10
# Ensure the tmp_splunk directory exists
10
11
if [ ! -d " $HOME /tmp_splunk" ]; then
@@ -24,6 +25,7 @@ wget "${scripts_repo}unit5/BlueCoatProxy01.csv" -O "$HOME/tmp_splunk/BlueCoatPro
24
25
if [ " $all_success " = false ]; then
25
26
echo -e " ${red} [UNIT 1 LAB]${none} Error: Could not download Splunk files to $HOME /tmp_splunk folder"
26
27
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"
27
29
exit 1
28
30
fi
29
31
You can’t perform that action at this time.
0 commit comments