File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ install_if_not ffmpeg
125125if which nproc > /dev/null 2>&1
126126then
127127 nextcloud_occ config:system:set preview_concurrency_new --value=" $( nproc) "
128- nextcloud_occ config:system:set preview_concurrency_all --value=" $( expr $( nproc) ' * ' 2 ) "
128+ nextcloud_occ config:system:set preview_concurrency_all --value=" $(( $(nproc)* 2 )) " "
129129else
130130 nextcloud_occ config:system:set preview_concurrency_new --value=" 2"
131131 nextcloud_occ config:system:set preview_concurrency_all --value=" 4"
Original file line number Diff line number Diff line change @@ -286,6 +286,7 @@ It will also do the following:
286286- Set correct Rewriterules for Nextcloud
287287- Copy content from .htaccess to .user.ini (because we use php-fpm)
288288- Add additional options if you choose them
289+ - Set correct CPU cores for Imaginary
289290- And more..."
290291
291292msg_box " PLEASE NOTE:
@@ -480,6 +481,16 @@ else
480481 calculate_php_fpm
481482fi
482483
484+ # Set correct amount of CPUs for Imaginary
485+ if which nproc > /dev/null 2>&1
486+ then
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"
492+ fi
493+
483494# Add temporary fix if needed
484495if network_ok
485496then
You can’t perform that action at this time.
0 commit comments