Skip to content

Commit d49d555

Browse files
fix typos
1 parent d7b8146 commit d49d555

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

scripts/cleanup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/bash
22

33
PYCACHE=__pycache__
4-
MY_HOME=/c/Users/Ibrahim/Desktop
5-
SHOW_FINDING=`find . -type d -name "${PYCACHE}" 2>/dev/null`
4+
MY_HOME=/c/Users/$USER
5+
LIST_FINDINGS=`cd $MY_HOME && $find . -type d -name "${PYCACHE}" 2>/dev/null`
66
TIMESTAMP=`date '+%F %T'`
77

8-
for RESULT in "${SHOW_FINDING}"; do
8+
for RESULT in "${LIST_FINDINGS}"; do
99
echo "#############################"
1010
echo "Result found: $RESULT"
1111
echo "#############################"
1212
done
1313

1414
cd $MY_HOME
1515

16-
if [ -z "${SHOW_FINDING}" ]; then
16+
if [ -z "${LIST_FINDINGS}" ]; then
1717
echo "${TIMESTAMP} INFO No ${PYCACHE} found."
1818
read
1919
exit 2

scripts/deploy_elk_beats.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ echo "${TIMESTAMP} WARN Stop filebeat and metricbeat on all nodes with operat
3333
read -p 'Enter the APITOKEN: ' APITOKEN
3434
read -p 'Enter desired filebeat & metricbeat version: ' VERSION_BEATS
3535

36-
curl -H X-JFrog-Art-Api:${APITOKEN} -O -s "https://artifactory.$MASK/elastic/${VERSION_BEATS}/filebeat-${VERSION_BEATS}-x86_64.rpm" # masking the domain regarding security.
37-
curl -H X-JFrog-Art-Api:${APITOKEN} -O -s "https://artifactory.$MASK/elastic/${VERSION_BEATS}/metricbeat-${VERSION_BEATS}-x86_64.rpm" # masking the domain regarding security.
36+
curl -H X-JFrog-Art-Api:${APITOKEN} -O -s "https://artifactory.$MASKED/elastic/${VERSION_BEATS}/filebeat-${VERSION_BEATS}-x86_64.rpm" # masking the domain regarding security.
37+
curl -H X-JFrog-Art-Api:${APITOKEN} -O -s "https://artifactory.$MASKED/elastic/${VERSION_BEATS}/metricbeat-${VERSION_BEATS}-x86_64.rpm" # masking the domain regarding security.
3838

3939
if [ $(ls "$BEATS_SETUP" | wc -l) -ne 0 ]; then
4040
echo "${TIMESTAMP} INFO filebeat-${VERSION_BEATS} and metricbeat-${VERSION_BEATS} downloads completed." | tee -a ${LOGFILE}

scripts/network-ports.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# This script displays the open network ports on a system
44
# Use -4 as an argument to limit to tcpv4 ports.
55

6-
netstat -nutl ${1} | grep ':'| awk '{print $4}' | awk -F ':' '{print $NF}'
6+
netstat -nutl ${1} | grep ':'| awk '{print $4}' | awk -F ':' '{print $NF}' |uniq

scripts/update_elastic_container.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ echo "${TIMESTAMP} WARN Stop filebeat and metricbeat on all nodes with operat
3030
read -p 'Enter filebeat & metricbeat version: ' VERSION_BEATS
3131

3232
function downloadElk {
33-
wget "https://artifactory.wdt.six-group.net:443/artifactory/cscao-generic-release-remote-cache/docker/elk_${VERSION_BEATS}.tar.gz"
33+
wget "https://artifactory.${BASE_MASKED}:443/artifactory/cscao-generic-release-remote-cache/docker/elk_${VERSION_BEATS}.tar.gz"
3434
gzip -d elk_${VERSION_BEATS}.tar.gz
3535

3636
if [ $(ls -l "$OPT_SETUP" | wc -l) -ne 0 ]; then

0 commit comments

Comments
 (0)