pull/144/head
midoks 3 years ago
parent 9dce0b4808
commit 1d1cd31f5a
  1. 4
      plugins/mysql/versions/5.5/install.sh
  2. 4
      plugins/mysql/versions/5.6/install.sh
  3. 4
      plugins/mysql/versions/5.7/install.sh
  4. 4
      plugins/mysql/versions/8.0/install.sh

@ -38,8 +38,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else

@ -41,8 +41,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else

@ -43,8 +43,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else

@ -80,8 +80,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else

Loading…
Cancel
Save