clamav-unofficial-sigs icon indicating copy to clipboard operation
clamav-unofficial-sigs copied to clipboard

Error on XStreamOS/illumos (SunOS 5.11)

Open gbulfon opened this issue 3 years ago • 0 comments

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

gbulfon avatar Dec 23 '21 09:12 gbulfon