Merge pull request #6900 from nextcloud/enh/noid/blacklisted-files

nextcloud-entrypoint: allow to configure av_blocklisted_directories
This commit is contained in:
Simon L. 2025-09-29 10:53:53 +02:00 committed by GitHub
commit b353ba0ab3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -820,6 +820,9 @@ if [ "$CLAMAV_ENABLED" = 'yes' ]; then
php /var/www/html/occ config:app:set files_antivirus av_stream_max_length --value="$CLAMAV_MAX_SIZE"
php /var/www/html/occ config:app:set files_antivirus av_max_file_size --value="$CLAMAV_MAX_SIZE"
php /var/www/html/occ config:app:set files_antivirus av_infected_action --value="only_log"
if [ -n "$CLAMAV_BLOCKLISTED_DIRECTORIES" ]; then
php /var/www/html/occ config:app:set files_antivirus av_blocklisted_directories --value="$CLAMAV_BLOCKLISTED_DIRECTORIES"
fi
fi
else
if [ "$REMOVE_DISABLED_APPS" = yes ] && [ -d "/var/www/html/custom_apps/files_antivirus" ]; then