Skip to content

Commit 123e151

Browse files
authored
default to 2 cpu cores since that's what the VM is released with
Signed-off-by: Daniel Hansson <[email protected]>
1 parent 949872c commit 123e151

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/imaginary.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ root_check
2222

2323
# Check recources
2424
ram_check 4
25-
cpu_check 4
25+
cpu_check 2
2626

2727
# Compatible with NC24 and above
2828
lowest_compatible_nc 26
@@ -121,12 +121,12 @@ install_if_not php"$PHPVER"-sysvsem
121121
install_if_not ffmpeg
122122

123123
# Set default limits
124-
# https://github.com/nextcloud/server/pull/18210/files#diff-3bbe91e1f85eec5dbd0031642dfb0ad6749b550fc3b94af7aa68a98210b78738R1121
125-
nextcloud_occ config:system:set preview_concurrency_all --value="8"
126-
nextcloud_occ config:system:set preview_concurrency_new --value="4"
124+
# https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#previews
125+
nextcloud_occ config:system:set preview_concurrency_all --value="4"
126+
nextcloud_occ config:system:set preview_concurrency_new --value="2"
127127

128128
# Set providers (https://github.com/nextcloud/server/blob/master/lib/private/Preview/Imaginary.php#L60)
129-
# https://github.com/nextcloud/vm/pull/2464#discussion_r1155074227
129+
# https://github.com/nextcloud/vm/issues/2465
130130
nextcloud_occ config:system:set enabledPreviewProviders 0 --value="OC\\Preview\\Imaginary"
131131
nextcloud_occ config:system:set enabledPreviewProviders 1 --value="OC\\Preview\\Image"
132132
nextcloud_occ config:system:set enabledPreviewProviders 2 --value="OC\\Preview\\MarkDown"

0 commit comments

Comments
 (0)