We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a5fa5d commit 80dbb2cCopy full SHA for 80dbb2c
Scripts/unit5_lab.sh
@@ -5,7 +5,7 @@ none='\033[0m'
5
6
echo "[UNIT 5 LAB] Starting script..."
7
8
-if systemctl is-active --quiet splunk; then
+if sudo /opt/splunk/bin/splunk status | grep 'is running'; then
9
echo -e "${green}[UNIT 5 LAB]${none} Splunk is already installed."
10
else
11
echo -e "[UNIT 5 LAB] Installing Splunk..."
@@ -36,7 +36,7 @@ sudo ./splunk enable boot-start
36
37
EOF
38
39
- if systemctl is-active --quiet splunk; then
+ if sudo /opt/splunk/bin/splunk status | grep 'is running'; then
40
echo -e "${green}[UNIT 5 LAB]${none} Splunk installed correctly"
41
42
echo -e "${red}[UNIT 5 LAB]${none} ERROR: Splunk did not install correctly!"
0 commit comments