From d18f16a2b8cba7fdd4aa5c80e0ff8d2c2ea8eb13 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 6 Oct 2022 15:32:30 +0800 Subject: [PATCH] up --- plugins/php/versions/53/install.sh | 4 ++++ plugins/php/versions/54/install.sh | 4 ++++ plugins/php/versions/55/install.sh | 4 ++++ plugins/php/versions/56/install.sh | 4 ++++ plugins/php/versions/70/install.sh | 4 ++++ plugins/php/versions/71/install.sh | 4 ++++ plugins/php/versions/72/install.sh | 4 ++++ plugins/php/versions/73/install.sh | 4 ++++ plugins/php/versions/74/install.sh | 4 ++++ plugins/php/versions/80/install.sh | 4 ++++ plugins/php/versions/81/install.sh | 4 ++++ plugins/php/versions/82/install.sh | 4 ++++ 12 files changed, 48 insertions(+) diff --git a/plugins/php/versions/53/install.sh b/plugins/php/versions/53/install.sh index 9ce860b4a..b2c66938a 100755 --- a/plugins/php/versions/53/install.sh +++ b/plugins/php/versions/53/install.sh @@ -73,6 +73,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ if [ ! -d $serverPath/php/53/bin ];then diff --git a/plugins/php/versions/54/install.sh b/plugins/php/versions/54/install.sh index e144738eb..0e23981f6 100755 --- a/plugins/php/versions/54/install.sh +++ b/plugins/php/versions/54/install.sh @@ -65,6 +65,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ diff --git a/plugins/php/versions/55/install.sh b/plugins/php/versions/55/install.sh index e7adad4f9..e067c6754 100755 --- a/plugins/php/versions/55/install.sh +++ b/plugins/php/versions/55/install.sh @@ -64,6 +64,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ if [ ! -d $serverPath/php/55 ];then diff --git a/plugins/php/versions/56/install.sh b/plugins/php/versions/56/install.sh index a5b4d97f4..af7e2ee7e 100755 --- a/plugins/php/versions/56/install.sh +++ b/plugins/php/versions/56/install.sh @@ -64,6 +64,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ diff --git a/plugins/php/versions/70/install.sh b/plugins/php/versions/70/install.sh index df569d2ff..06c3f9470 100755 --- a/plugins/php/versions/70/install.sh +++ b/plugins/php/versions/70/install.sh @@ -64,6 +64,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ if [ ! -d $serverPath/php/70 ];then diff --git a/plugins/php/versions/71/install.sh b/plugins/php/versions/71/install.sh index 1e8d5efd7..b4542cb8e 100755 --- a/plugins/php/versions/71/install.sh +++ b/plugins/php/versions/71/install.sh @@ -61,6 +61,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ if [ ! -d $serverPath/php/71 ];then diff --git a/plugins/php/versions/72/install.sh b/plugins/php/versions/72/install.sh index c75d9c93f..e49e08cc2 100755 --- a/plugins/php/versions/72/install.sh +++ b/plugins/php/versions/72/install.sh @@ -63,6 +63,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ if [ ! -d $serverPath/php/72 ];then diff --git a/plugins/php/versions/73/install.sh b/plugins/php/versions/73/install.sh index de25f7bb0..3467376c0 100755 --- a/plugins/php/versions/73/install.sh +++ b/plugins/php/versions/73/install.sh @@ -77,6 +77,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ if [ ! -d $serverPath/php/73 ];then diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index d6e661fec..82430997a 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -93,6 +93,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ if [ ! -d $serverPath/php/${PHP_VER} ];then diff --git a/plugins/php/versions/80/install.sh b/plugins/php/versions/80/install.sh index 62a64a23c..7a3369448 100755 --- a/plugins/php/versions/80/install.sh +++ b/plugins/php/versions/80/install.sh @@ -84,6 +84,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ echo "$sourcePath/php/php${PHP_VER}" diff --git a/plugins/php/versions/81/install.sh b/plugins/php/versions/81/install.sh index fcfa9575d..56c4237d4 100755 --- a/plugins/php/versions/81/install.sh +++ b/plugins/php/versions/81/install.sh @@ -78,6 +78,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ echo "$sourcePath/php/php${PHP_VER}" diff --git a/plugins/php/versions/82/install.sh b/plugins/php/versions/82/install.sh index 1538e89a0..f199b1b49 100755 --- a/plugins/php/versions/82/install.sh +++ b/plugins/php/versions/82/install.sh @@ -72,6 +72,10 @@ if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then else cpuCore="1" fi + +if [ "$cpuCore" -gt "1" ];then + cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'` +fi # ----- cpu end ------ ZIP_OPTION='--with-zip'