This commit is contained in:
parent
501f2be89e
commit
0e8662c390
11
src/basic.sh
11
src/basic.sh
@ -70,11 +70,13 @@ echo
|
|||||||
# Какое ПО стоит? Docker/atop
|
# Какое ПО стоит? Docker/atop
|
||||||
echo -e "\n${TEXT_COLOR_GOOD} - Installed software: ${TEXT_COLOR_OFF}\n"
|
echo -e "\n${TEXT_COLOR_GOOD} - Installed software: ${TEXT_COLOR_OFF}\n"
|
||||||
|
|
||||||
for i in docker atop
|
for i in "docker" "atop"
|
||||||
do
|
do
|
||||||
if `which $i`
|
if `which $i`
|
||||||
then
|
then
|
||||||
echo "$i is installed"
|
echo "$i is installed"
|
||||||
|
else
|
||||||
|
echo "$i is NOT installed"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -82,7 +84,6 @@ while true
|
|||||||
do
|
do
|
||||||
echo -e "
|
echo -e "
|
||||||
---
|
---
|
||||||
1. Есть ли atop?
|
|
||||||
2. nginx: Посмотреть конфиги и домены в них
|
2. nginx: Посмотреть конфиги и домены в них
|
||||||
3. Запустить logs
|
3. Запустить logs
|
||||||
|
|
||||||
@ -93,12 +94,6 @@ echo -e "
|
|||||||
case $action in
|
case $action in
|
||||||
0)
|
0)
|
||||||
harakiri
|
harakiri
|
||||||
;;
|
|
||||||
1)
|
|
||||||
echo -e "${TEXT_COLOR_GOOD} - Installed packages: ${TEXT_COLOR_OFF}\n"
|
|
||||||
list=$(apt list --installed 2>&1 |egrep 'atop')
|
|
||||||
echo $list
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
nginx -T 2> /dev/null | egrep "configuration file|server_name"
|
nginx -T 2> /dev/null | egrep "configuration file|server_name"
|
||||||
|
Loading…
Reference in New Issue
Block a user