diff options
author | Daniel Hansson <github@hanssonit.se> | 2019-09-17 13:48:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-17 13:48:38 +0300 |
commit | 61d31982ef3d886b04d119947a0b1470f022b70c (patch) | |
tree | 5b4b2c2b6f72664457c92009b91238a608dd3870 | |
parent | 6d405de483e81f3bd96502f61b8e7dd5fb74ffdc (diff) |
...no matter the outcome of `calculate_php_fpm()`
Fix for #943 943
-rw-r--r-- | lib.sh | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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() { |