Check software
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
lulzette 2023-05-17 22:24:07 +03:00
parent 501f2be89e
commit 0e8662c390

View File

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