From 79095a3e71d8cc97e0588f8e1ecea3b497425a55 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 7 Aug 2022 23:04:53 +0800 Subject: [PATCH] Update install.sh --- plugins/postgresql/versions/14.4/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/postgresql/versions/14.4/install.sh b/plugins/postgresql/versions/14.4/install.sh index 7b0f30705..aa686a4d3 100755 --- a/plugins/postgresql/versions/14.4/install.sh +++ b/plugins/postgresql/versions/14.4/install.sh @@ -50,6 +50,11 @@ Install_App() else cpuCore="1" fi + + # for stable installation + if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` + fi # ----- cpu end ------ if [ ! -f ${postgreDir}/postgresql-${VERSION}.tar.bz2 ];then