You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check_command sed -i "s|pm.max_spare_servers.*|pm.max_spare_servers = $((PHP_FPM_MAX_CHILDREN -30))|g"$PHP_POOL_DIR/nextcloud.conf
345
+
check_command sed -i "s|pm.max_spare_servers.*|pm.max_spare_servers = $((PHP_FPM_MAX_CHILDREN -30))|g""$PHP_POOL_DIR"/nextcloud.conf
345
346
print_text_in_color "$IGreen""pm.max_spare_servers was set to $((PHP_FPM_MAX_CHILDREN -30))"
346
347
fi
347
348
fi
@@ -351,10 +352,10 @@ fi
351
352
# If $PHP_FPM_MAX_CHILDREN is lower than the current sum of all values, revert to default settings
352
353
if [ $PHP_FPM_MAX_CHILDREN-lt$CURRENT_SUM ]
353
354
then
354
-
check_command sed -i "s|pm.max_children.*|pm.max_children = $PHP_FPM_MAX_CHILDREN|g"$PHP_POOL_DIR/nextcloud.conf
355
-
check_command sed -i "s|pm.start_servers.*|pm.start_servers = 3|g"$PHP_POOL_DIR/nextcloud.conf
356
-
check_command sed -i "s|pm.min_spare_servers.*|pm.min_spare_servers = 2|g"$PHP_POOL_DIR/nextcloud.conf
357
-
check_command sed -i "s|pm.max_spare_servers.*|pm.max_spare_servers = 3|g"$PHP_POOL_DIR/nextcloud.conf
355
+
check_command sed -i "s|pm.max_children.*|pm.max_children = $PHP_FPM_MAX_CHILDREN|g""$PHP_POOL_DIR"/nextcloud.conf
356
+
check_command sed -i "s|pm.start_servers.*|pm.start_servers = 3|g""$PHP_POOL_DIR"/nextcloud.conf
357
+
check_command sed -i "s|pm.min_spare_servers.*|pm.min_spare_servers = 2|g""$PHP_POOL_DIR"/nextcloud.conf
358
+
check_command sed -i "s|pm.max_spare_servers.*|pm.max_spare_servers = 3|g""$PHP_POOL_DIR"/nextcloud.conf
358
359
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)"
359
360
print_text_in_color "$ICyan""Please run this again to set optimal values"
0 commit comments