diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 26c393e..a993e02 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -149,10 +149,12 @@ install_all_scanners() { if command -v clamscan &>/dev/null; then echo -e "${GREEN}✓ ClamAV installed${NC}" - # Update signatures + + # Update virus signatures immediately if command -v freshclam &>/dev/null; then - echo " Updating virus signatures..." - freshclam &>/dev/null || true + echo " → Updating virus signatures (this may take a moment)..." + freshclam 2>&1 | grep -E "updated|Downloaded|up-to-date" || freshclam &>/dev/null + echo -e " ${GREEN}✓${NC} Signatures updated" fi else echo -e "${RED}✗ ClamAV installation failed${NC}" @@ -180,9 +182,11 @@ install_all_scanners() { if command -v maldet &>/dev/null; then echo -e "${GREEN}✓ Maldet installed${NC}" - # Update signatures - echo " Updating signatures..." - maldet -u &>/dev/null || true + + # Update malware signatures immediately + echo " → Updating malware signatures..." + maldet -u 2>&1 | grep -E "update completed|signatures" || maldet -u &>/dev/null + echo -e " ${GREEN}✓${NC} Signatures updated" else echo -e "${RED}✗ Maldet installation failed${NC}" fi @@ -217,6 +221,11 @@ install_all_scanners() { if command -v imunify-antivirus &>/dev/null; then echo -e "${GREEN}✓ ImunifyAV (FREE) installed${NC}" echo " No license key required - this is the FREE version" + + # Update malware signatures immediately + echo " → Updating malware signatures..." + imunify-antivirus update 2>&1 | grep -E "updated|Success|completed" || imunify-antivirus update &>/dev/null + echo -e " ${GREEN}✓${NC} Signatures updated" else echo -e "${RED}✗ ImunifyAV installation failed${NC}" fi