Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing check for config_dir on arm Macs #417

Open
tiiiecherle opened this issue Dec 2, 2022 · 0 comments
Open

Missing check for config_dir on arm Macs #417

tiiiecherle opened this issue Dec 2, 2022 · 0 comments

Comments

@tiiiecherle
Copy link

Describe the bug

Missing check for config_dir on arm Macs.

# Attempt to scan for a valid config dir
if [ -f "/etc/clamav-unofficial-sigs/master.conf" ] ; then
  config_dir="/etc/clamav-unofficial-sigs"
elif [ -f "/usr/local/etc/clamav-unofficial-sigs/master.conf" ] ; then
  config_dir="/usr/local/etc/clamav-unofficial-sigs/"
elif [ -f "/opt/zimbra/conf/clamav-unofficial-sigs/master.conf" ] ; then
  config_dir="/opt/zimbra/conf/clamav-unofficial-sigs/"
else
  xshok_pretty_echo_and_log "ERROR: config_dir (/etc/clamav-unofficial-sigs/master.conf) could not be found"
  exit 1
fi

The homebrew directory on arm Macs is

brew --prefix
/opt/homebrew

If I understand correctly there should be another check

elif [ -f "/opt/homebrew/etc/clamav-unofficial-sigs/master.conf" ] ; then
  config_dir="/opt/homebrew/etc/clamav-unofficial-sigs/"

How to reproduce the problem

running clamav-unofficial-sigs.sh on arm Mac results in

==============================================================================
ERROR: config_dir (/etc/clamav-unofficial-sigs/master.conf) could not be found
==============================================================================

Thanks for fixing in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant