Fix: Correct Maldet repository URL - was using wrong repo name

Issue: All downloads failing because repository was 'rfxn/maldet' which doesn't exist on GitHub. The correct repository is 'rfxn/linux-malware-detect'.

Testing confirmed:
- Original rfxn.com URL: Returns 404 (not found)
- Original GitHub paths: Repository doesn't exist
- Correct repo: https://github.com/rfxn/linux-malware-detect (EXISTS and works)
- Latest release: 1.6.6.1 (verified with API)
- Download test: 84K successful tarball

Solution: Updated download sources to use correct repository:
  1. GitHub API: Direct to release 1.6.6.1 (primary)
  2. GitHub main branch: Fallback to development version

Removed non-functional rfxn.com URL (404 error).
This commit is contained in:
Developer
2026-04-21 20:04:59 -04:00
parent 7f9ecfac81
commit d38ebdc464
+3 -3
View File
@@ -287,10 +287,10 @@ install_maldet_only() {
# Download sources in priority order # Download sources in priority order
# Format: "name|url|label" (using | as delimiter to avoid splitting https://) # Format: "name|url|label" (using | as delimiter to avoid splitting https://)
# Note: Repository is rfxn/linux-malware-detect (not maldet)
local sources=( local sources=(
"rfxn|https://www.rfxn.com/downloads/maldetect-latest.tar.gz|rfxn.com (official)" "github-api|https://api.github.com/repos/rfxn/linux-malware-detect/tarball/1.6.6.1|GitHub Release 1.6.6.1"
"github-api|https://api.github.com/repos/rfxn/maldet/archive/refs/heads/main.tar.gz|GitHub API" "github-main|https://github.com/rfxn/linux-malware-detect/archive/refs/heads/main.tar.gz|GitHub main branch"
"github|https://github.com/rfxn/maldet/archive/refs/heads/main.tar.gz|GitHub direct"
) )
echo "Attempting to download from sources..." echo "Attempting to download from sources..."