File tree 2 files changed +12
-1
lines changed
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
125
125
if which nproc > /dev/null 2>&1
126
126
then
127
127
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 )) " "
129
129
else
130
130
nextcloud_occ config:system:set preview_concurrency_new --value=" 2"
131
131
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:
286
286
- Set correct Rewriterules for Nextcloud
287
287
- Copy content from .htaccess to .user.ini (because we use php-fpm)
288
288
- Add additional options if you choose them
289
+ - Set correct CPU cores for Imaginary
289
290
- And more..."
290
291
291
292
msg_box " PLEASE NOTE:
@@ -480,6 +481,16 @@ else
480
481
calculate_php_fpm
481
482
fi
482
483
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
+
483
494
# Add temporary fix if needed
484
495
if network_ok
485
496
then
You can’t perform that action at this time.
0 commit comments