From 426b8e343ef9ea45da2fdfa2c4f7e5899973ddb2 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 8 Feb 2019 18:11:12 +0100 Subject: [PATCH] fix calculate_php_fpm (#783) --- nextcloud-startup-script.sh | 3 +++ static/temporary-fix.sh | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nextcloud-startup-script.sh b/nextcloud-startup-script.sh index d6c13739..6ba029e8 100644 --- a/nextcloud-startup-script.sh +++ b/nextcloud-startup-script.sh @@ -522,6 +522,9 @@ rm -f results # Calculate the values of PHP-FPM based on the amount of RAM available (minimum 2 GB or 8 children) calculate_php_fpm +# Run again if values are reset on last run +calculate_php_fpm + # Add temporary fix if needed bash $SCRIPTS/temporary-fix.sh rm "$SCRIPTS"/temporary-fix.sh diff --git a/static/temporary-fix.sh b/static/temporary-fix.sh index c375d59b..5d08b4f3 100644 --- a/static/temporary-fix.sh +++ b/static/temporary-fix.sh @@ -13,6 +13,4 @@ true DEBUG=0 debug_mode -caulculate_php_fpm - exit