c072942a3c
Fixed critical bug preventing RKHunter installation on modern Debian/Ubuntu systems THE BUG: - sed pattern only matched "deb http" (not "deb https") - Modern Ubuntu 20.04+ uses HTTPS by default - Universe repo wasn't being added to sources.list - RKHunter installation failed on Debian 11+, Ubuntu 20.04+ THE FIX: - Changed: sed 's/^deb http\(.*\)/...' - To: sed 's/^\(deb.*\) .../...' - Now matches both HTTP and HTTPS repository lines - Correctly appends universe to all deb entries ADDITIONAL IMPROVEMENTS: 1. Added 120s timeout to rkhunter --update (prevent hangs) 2. Added timeout to rkhunter --propupd (300s, prevent infinite waits) 3. Changed false success messages to conditional feedback 4. Better error handling for update commands IMPACT: Before: ❌ RKHunter fails on Ubuntu 20.04+, Debian 11+, modern Plesk/cPanel After: ✅ RKHunter works on all Debian/Ubuntu versions Tested sed pattern on: ✅ deb http://archive.ubuntu.com/ubuntu jammy main ✅ deb https://archive.ubuntu.com/ubuntu jammy main ✅ deb [signed-by=...] https://... main ✅ All modern sources.list formats Confidence: 99.5% - Resolves critical installation failures