Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2020-08-31 02:57:22 +0300
committernachoparker <nacho@ownyourbits.com>2020-08-31 02:57:27 +0300
commit21a791db986a864d6e34d9471fbceac466c36f03 (patch)
tree3ab275d7d6db002f7d7ef4d70c001c9bbd10f37f /bin
parentc143accdfcffa15a3a93773a6da77660a015375b (diff)
nc-limits: minimum 6 PHP threads (for NC talk)v1.29.8
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin')
-rw-r--r--bin/ncp/CONFIG/nc-limits.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp/CONFIG/nc-limits.sh b/bin/ncp/CONFIG/nc-limits.sh
index 472c4168..1597bb79 100644
--- a/bin/ncp/CONFIG/nc-limits.sh
+++ b/bin/ncp/CONFIG/nc-limits.sh
@@ -32,8 +32,8 @@ configure()
# MAX PHP THREADS
local CONF=/etc/php/${PHPVER}/fpm/pool.d/www.conf
local CURRENT_THREADS=$( grep "^pm.max_children" "$CONF" | awk '{ print $3 }' )
- [[ $PHPTHREADS -eq 0 ]] && PHPTHREADS=$( nproc )
- [[ $PHPTHREADS -lt 3 ]] && PHPTHREADS=3
+ [[ $PHPTHREADS -eq 0 ]] && PHPTHREADS=$(nproc)
+ [[ $PHPTHREADS -lt 6 ]] && PHPTHREADS=6
echo "Using $PHPTHREADS PHP threads"
sed -i "s|^pm =.*|pm = static|" "$CONF"
sed -i "s|^pm.max_children =.*|pm.max_children = $PHPTHREADS|" "$CONF"