clamav-unofficial-sigs
clamav-unofficial-sigs copied to clipboard
Error on XStreamOS/illumos (SunOS 5.11)
Hi, I'm trying to package and distribute the script on our XStreamOS/illumos distro (SunOS 5.11). Running the script the first time with "--force" I get this error:
/sonicle/sbin/clamav-unofficial-sigs.sh: line 1849: --reload: command not found
Looks like the problem is here:
eval 'setmode=yes clam_dbs=/var/lib/clamav clamd_pid=/var/run/clamav/clamd.pid reload_dbs=yes clamd_reload_opt=clamdscan --reload work_dir=/var/lib/clamav-unofficial-sigs'
where clamd_reload_opt is set without apices, so it takes "--reload" as a separate command (output from bash -x):
++ setmode=yes ++ clam_dbs=/var/lib/clamav ++ clamd_pid=/var/run/clamav/clamd.pid ++ reload_dbs=yes ++ clamd_reload_opt=clamdscan ++ --reload work_dir=/var/lib/clamav-unofficial-sigs
What's wrong? I used Solaris 11 OS config file with few changes based on my system.
Thanks, Gabriele