diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 4760dc8..8256805 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -982,8 +982,8 @@ for scanner in "${AVAILABLE_SCANNERS[@]}"; do echo " Scanning: $path" # Run scan with timeout to prevent hanging on status checks - # ImunifyAV scan - output to log file - timeout 7200 imunify-antivirus malware on-demand scan --path="$path" &>> "$LOG_DIR/imunify.log" & + # ImunifyAV scan - use 'queue put' command with path as positional argument + timeout 7200 imunify-antivirus malware on-demand queue put "$path" &>> "$LOG_DIR/imunify.log" & IMUNIFY_PID=$! # Monitor with simple timeout (don't try to parse imunify status which hangs)