From f6672d6bd5ae414eea734583a6bae3fe1d88aa83 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 7 Aug 2022 23:07:43 +0800 Subject: [PATCH] Update install.sh --- plugins/postgresql/versions/14.4/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/postgresql/versions/14.4/install.sh b/plugins/postgresql/versions/14.4/install.sh index aa686a4d3..6dd3a80b8 100755 --- a/plugins/postgresql/versions/14.4/install.sh +++ b/plugins/postgresql/versions/14.4/install.sh @@ -38,9 +38,9 @@ Install_App() cpuCore="1" fi - if [ -f /proc/cpuinfo ];then + if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` - fi + fi MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then