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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2019-09-17 13:48:38 +0300
committerGitHub <noreply@github.com>2019-09-17 13:48:38 +0300
commit61d31982ef3d886b04d119947a0b1470f022b70c (patch)
tree5b4b2c2b6f72664457c92009b91238a608dd3870
parent6d405de483e81f3bd96502f61b8e7dd5fb74ffdc (diff)
restart the webservers services one time...17.0017.0.0
...no matter the outcome of `calculate_php_fpm()` Fix for #943 943
-rw-r--r--lib.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib.sh b/lib.sh
index df692c10..38ad9a91 100644
--- a/lib.sh
+++ b/lib.sh
@@ -332,7 +332,6 @@ If you think this is a bug, please report it to $ISSUES"
exit 1
else
check_command sed -i "s|pm.max_children.*|pm.max_children = $PHP_FPM_MAX_CHILDREN|g" $PHP_POOL_DIR/nextcloud.conf
- restart_webserver
print_text_in_color "$IGreen" "pm.max_children was set to $PHP_FPM_MAX_CHILDREN"
# Check if the sum of all the current values are more than $PHP_FPM_MAX_CHILDREN and only continue it is
if [ $PHP_FPM_MAX_CHILDREN -gt $CURRENT_SUM ]
@@ -343,7 +342,6 @@ else
if [ "$(grep pm.start_servers $PHP_POOL_DIR/nextcloud.conf | awk '{ print $3}')" -lt $min_start_servers ]
then
check_command sed -i "s|pm.max_spare_servers.*|pm.max_spare_servers = $((PHP_FPM_MAX_CHILDREN - 30))|g" $PHP_POOL_DIR/nextcloud.conf
- restart_webserver
print_text_in_color "$IGreen" "pm.max_spare_servers was set to $((PHP_FPM_MAX_CHILDREN - 30))"
fi
fi
@@ -359,8 +357,8 @@ then
check_command sed -i "s|pm.max_spare_servers.*|pm.max_spare_servers = 3|g" $PHP_POOL_DIR/nextcloud.conf
print_text_in_color "$ICyan" "All PHP-INI values were set back to default values as the value for pm.max_children ($PHP_FPM_MAX_CHILDREN) was lower than the sum of all the current values ($CURRENT_SUM)"
print_text_in_color "$ICyan" "Please run this again to set optimal values"
- restart_webserver
fi
+restart_webserver
}
test_connection() {