more colors
This commit is contained in:
parent
efc081b0f0
commit
2be9029fb7
@ -26,8 +26,7 @@ harakiri() {
|
||||
}
|
||||
|
||||
lsb_release -a 2> /dev/null
|
||||
|
||||
echo "- Load:"
|
||||
echo ; echo ${TEXT_COLOR_GOOD}"- Load:"${TEXT_COLOR_OFF}
|
||||
|
||||
nproc=`nproc`
|
||||
la=`cat /proc/loadavg | awk '{print $1, $2, $3}'`
|
||||
@ -37,7 +36,7 @@ totalmem=`free -m | head -2 | tail -1 | awk '{print $2}'`
|
||||
echo 'LA: ' $la ' of ' $nproc
|
||||
echo 'RAM: ' $usedmem 'Mb of ' $totalmem Mb
|
||||
|
||||
echo "- Disk:"
|
||||
echo ${TEXT_COLOR_GOOD} "- Disk:" ${TEXT_COLOR_OFF}
|
||||
|
||||
df -h | head -n 1
|
||||
df -h | grep '/dev/vd'
|
||||
@ -46,7 +45,7 @@ echo "- Inodes:"
|
||||
|
||||
df -hi | grep '/dev/vd'
|
||||
|
||||
echo "- Installed panel:"
|
||||
echo ${TEXT_COLOR_GOOD} "- Installed panel:" ${TEXT_COLOR_OFF}
|
||||
|
||||
#if zero - false
|
||||
[[ -d /opt/webdir/bin/ ]] && echo "Bitrix!"
|
||||
@ -54,7 +53,7 @@ echo "- Installed panel:"
|
||||
[[ -d /usr/local/mgr5/ ]] && echo "ISPManager!"
|
||||
[[ -d /usr/local/fastpanel2 ]] && echo "Fastpanel 2"
|
||||
|
||||
echo "- Installed packages"
|
||||
echo ${TEXT_COLOR_GOOD} "- Installed packages" ${TEXT_COLOR_OFF}
|
||||
|
||||
list=$(apt list --installed 2>&1 |egrep 'atop')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user