diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index b503e88..9cadaf6 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -223,13 +223,13 @@ install_all_scanners() { if rpm -qa | grep -q "cpanel-clamav"; then echo -e "${GREEN}✓ ClamAV already installed (cPanel)${NC}" else - /scripts/update_local_rpm_versions --edit target_settings.clamav installed 2>/dev/null - /scripts/check_cpanel_rpms --fix --targets=clamav 2>&1 | grep -E "Installing|Updating|up to date" + /scripts/update_local_rpm_versions --edit target_settings.clamav installed 2>/dev/null || true + /scripts/check_cpanel_rpms --fix --targets=clamav 2>&1 | grep -E "Installing|Updating|up to date" || true fi elif command -v yum &>/dev/null; then - yum install -y clamav clamav-update 2>&1 | grep -E "Installing|Updating|already installed" + yum install -y clamav clamav-update 2>&1 | grep -E "Installing|Updating|already installed" || true elif command -v apt-get &>/dev/null; then - apt-get update && apt-get install -y clamav clamav-daemon + apt-get update && apt-get install -y clamav clamav-daemon || true fi if is_clamav_installed; then @@ -374,7 +374,7 @@ install_all_scanners() { if [ -f imav-deploy.sh ]; then # Run deployment script with progress indicators - bash imav-deploy.sh 2>&1 | grep -E "Installing|Installed|Complete|Error|Failed" || bash imav-deploy.sh + bash imav-deploy.sh 2>&1 | grep -E "Installing|Installed|Complete|Error|Failed" || true rm -f imav-deploy.sh # Enable cPanel UI plugin if installed