Merge pull request #6094 from nextcloud/clamav-alpine-aarch64

clamav: build the container also for aarch64/arm64 by using the alpine package
This commit is contained in:
Zoey 2025-03-06 16:00:53 +01:00 committed by GitHub
parent 53abc41cde
commit 9e95d96656
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 69 additions and 51 deletions

View file

@ -132,7 +132,7 @@ class ConfigurationManager
}
}
public function isx64Platform() : bool {
private function isx64Platform() : bool {
if (php_uname('m') === 'x86_64') {
return true;
} else {
@ -140,11 +140,7 @@ class ConfigurationManager
}
}
public function isClamavEnabled() : bool {
if (!$this->isx64Platform()) {
return false;
}
public function isClamavEnabled() : bool {
$config = $this->GetConfig();
if (isset($config['isClamavEnabled']) && $config['isClamavEnabled'] === 1) {
return true;