Added disabled option in ClamAV

GON-3874-DD-moodle
Roger Garcia 2022-11-24 16:23:36 +01:00 committed by Evilham
parent 4de82fc041
commit 8110da578b
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
1 changed files with 7 additions and 1 deletions

8
dd-ctl
View File

@ -254,7 +254,7 @@ build_compose(){
-f dd-apps/docker/redis/redis.yml \ -f dd-apps/docker/redis/redis.yml \
-f dd-apps/docker/postgresql/postgresql.yml \ -f dd-apps/docker/postgresql/postgresql.yml \
-f dd-apps/docker/mariadb/mariadb.yml \ -f dd-apps/docker/mariadb/mariadb.yml \
-f dd-apps/docker/clamav/${CLAMAV_YML} \ -f "dd-apps/docker/clamav/${CLAMAV_YML}" \
-f dd-apps/docker/network.yml \ -f dd-apps/docker/network.yml \
config > docker-compose.yml config > docker-compose.yml
} }
@ -352,6 +352,12 @@ setup_nextcloud(){
php occ --no-warnings app:install files_antivirus php occ --no-warnings app:install files_antivirus
php occ --no-warnings app:enable files_antivirus php occ --no-warnings app:enable files_antivirus
EOF EOF
else
# Enforce disabled
docker exec -i -u www-data dd-apps-nextcloud-app sh -s <<-EOF
php occ --no-warnings app:install files_antivirus
php occ --no-warnings app:disable files_antivirus
EOF
fi fi
# Disable in Nextcloud # Disable in Nextcloud