-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.sh
executable file
·48 lines (44 loc) · 958 Bytes
/
helper.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
clear
show_menu(){
echo ""
echo "===================================================="
echo "HELPER MENU"
echo "===================================================="
echo "1) show App"
echo "2) show Jenkins"
echo "3) show ELK Monitoring"
echo "===================================================="
echo "Please enter your choice or <q> or <return> to exit"
read opt
}
show_menu
while [ opt != "" ]
do
if [[ $opt = "" ]]; then
exit;
else
clear
case $opt in
1)
./showApp.sh 2>&1 | tee logs/showApp.log
show_menu
;;
2)
./showJenkins.sh 2>&1 | tee logs/showJenkins.log
show_menu
;;
3)
./showELKMon.sh 2>&1 | tee logs/showELKMon.log
show_menu
;;
q)
break
;;
*)
echo "invalid option"
show_menu
;;
esac
fi
done