parent
21ff7a36b8
commit
4d3e79281d
@ -1,3 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
echo "docker-compose ps....................."
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|
||||||
|
sleep 10
|
||||||
|
|
||||||
|
echo "check OpenIM.........................."
|
||||||
./check_all.sh
|
./check_all.sh
|
||||||
|
|
||||||
|
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source ./style_info.cfg
|
||||||
|
echo -e "check environment......................................."
|
||||||
|
|
||||||
|
SYSTEM=`uname -s`
|
||||||
|
if [ $SYSTEM != "Linux" ] ; then
|
||||||
|
echo -e ${RED_PREFIX}"Warning: Currently only Linux is supported"${COLOR_SUFFIX}
|
||||||
|
else
|
||||||
|
echo -e ${GREEN_PREFIX} "Linux system is ok"${COLOR_SUFFIX}
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "check memory............................................"
|
||||||
|
available=`free -m | grep Mem | awk '{print $NF}'`
|
||||||
|
if [ $available -lt 2000 ] ; then
|
||||||
|
echo -e ${RED_PREFIX}"Warning: Your memory not enough, available is: " "$available"m${COLOR_SUFFIX}"\c"
|
||||||
|
echo -e ${RED_PREFIX}", must be greater than 2000m"${COLOR_SUFFIX}
|
||||||
|
else
|
||||||
|
echo -e ${GREEN_PREFIX} "Memory is ok, available is: "$available"m${COLOR_SUFFIX}"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in new issue