File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -482,13 +482,16 @@ else
482482fi
483483
484484# Set correct amount of CPUs for Imaginary
485- if which nproc > /dev/null 2>&1
485+ if does_this_docker_exist nextcloud/aio-imaginary
486486then
487- nextcloud_occ config:system:set preview_concurrency_new --value=" $( nproc) "
488- nextcloud_occ config:system:set preview_concurrency_all --value=" $(( $(nproc)* 2 )) "
489- else
490- nextcloud_occ config:system:set preview_concurrency_new --value=" 2"
491- nextcloud_occ config:system:set preview_concurrency_all --value=" 4"
487+ if which nproc > /dev/null 2>&1
488+ then
489+ nextcloud_occ config:system:set preview_concurrency_new --value=" $( nproc) "
490+ nextcloud_occ config:system:set preview_concurrency_all --value=" $(( $(nproc)* 2 )) "
491+ else
492+ nextcloud_occ config:system:set preview_concurrency_new --value=" 2"
493+ nextcloud_occ config:system:set preview_concurrency_all --value=" 4"
494+ fi
492495fi
493496
494497# Add temporary fix if needed
You can’t perform that action at this time.
0 commit comments