From 367f088701515262435125f065e034491efee844 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 4 Jul 2023 22:56:40 +0200 Subject: [PATCH 1/2] change min cpu and ram Signed-off-by: Daniel Hansson --- apps/imaginary.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/imaginary.sh b/apps/imaginary.sh index af921bed99..30e0bd3465 100644 --- a/apps/imaginary.sh +++ b/apps/imaginary.sh @@ -21,8 +21,15 @@ debug_mode root_check # Check recources -ram_check 4 -cpu_check 2 +# If we can calculate the cpu and ram, then set it to the lowest possible, if not, then hardcode it to a recomended minimum. +if which nproc >/dev/null 2>&1 +then + ram_check Imaginary 1 + cpu_check Imaginary 1 +else + ram_check Imaginary 4 + cpu_check Imaginary 2 +fi # Compatible with NC24 and above lowest_compatible_nc 26 From 5e46ba61d47d91dc4609fa32f6d14a373381d1dd Mon Sep 17 00:00:00 2001 From: Simon L Date: Tue, 11 Jul 2023 12:47:00 +0200 Subject: [PATCH 2/2] adjust av_max_file_size (#2515) Signed-off-by: Simon L --- apps/clamav.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/clamav.sh b/apps/clamav.sh index 67fee1db53..79a4a0797e 100644 --- a/apps/clamav.sh +++ b/apps/clamav.sh @@ -101,7 +101,7 @@ install_and_enable_app files_antivirus nextcloud_occ config:app:set files_antivirus av_mode --value="socket" nextcloud_occ config:app:set files_antivirus av_socket --value="/var/run/clamav/clamd.ctl" nextcloud_occ config:app:set files_antivirus av_stream_max_length --value="1048576000" -nextcloud_occ config:app:set files_antivirus av_max_file_size --value="-1" +nextcloud_occ config:app:set files_antivirus av_max_file_size --value="1048576000" nextcloud_occ config:app:set files_antivirus av_infected_action --value="only_log" # Create av notification script