622f1002508c4e20792af70fe03afa8c190c9972
Adds caching system for scanner installation detection to avoid repeated calls to is_*_installed() functions, which perform command lookups and file checks on each invocation. Changes: 1. Added cache variables for each scanner (IMUNIFY/CLAMAV/MALDET/RKHUNTER_INSTALLED_CACHE) 2. Added cache_scanner_detection() function to populate cache once 3. Added is_scanner_cached() wrapper for cache-aware queries 4. Initialize cache in main() function after initial detect_scanners() 5. Updated menu functions to use cached checks: - maldet_scan_submenu() (displayed in loop, multiple checks per session) - maldet_launch_scan() (called repeatedly during menu navigation) - maldet_update_signatures() (status check before operations) - maldet_view_results() (status check before operations) Performance Impact: - Reduces 4+ is_*_installed() calls per menu navigation cycle to 1 - Typical usage: User navigates through menus 5-10 times = 20-40 redundant checks eliminated - Each direct check involves: command -v lookup + optional file stat check - With caching: Subsequent checks are array lookups (O(1) vs O(n)) Status: ✓ Syntax validated, caching integrated into menu system
🧪 Linux Server Toolkit - DEV Branch
STATUS: 🚀 Development & Testing Branch (Separate from Production)
This is the
devbranch for testing, development, and experimentation. Changes here are isolated from production and can be safely tested before merging to main.
🚀 Quick Start
One command - pulls dev branch with YELLOW ⚠️ BETA banner:
curl -sL https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit/archive/dev.tar.gz | tar xz && source linux-server-management-toolkit/run.sh
When exiting (option 0), answer "yes" and cleanup happens automatically - no extra steps.
📍 Key Differences (Dev vs Production)
| Feature | Dev Branch | Production |
|---|---|---|
| Cache | .sysref.beta |
.sysref |
| Version | 2.1.0-BETA |
2.1.0 |
| Banner | 🟨 Yellow (⚠️) | 🔵 Cyan |
| Git Branch | dev |
main |
| Purpose | Testing & Development | Stable/Production |
📦 Features
Comprehensive multi-panel server management suite supporting cPanel, InterWorx, Plesk, and standalone Apache with:
- 🛡️ Security & Monitoring: Live attack monitor, bot blocker, malware scanner, IP reputation
- 💾 Backup & Recovery: Acronis management, MySQL database restore
- 🌐 Website Diagnostics: Error analysis, WordPress tools, Cloudflare detection
- 📧 Email Diagnostics: Mail queue, blacklist checker, SPF/DKIM/DMARC validation
- 📊 Performance Analysis: MySQL optimization, PHP tuning, hardware health, Varnish cache
- 🔍 System Diagnostics: Health checks, loadwatch analysis, bandwidth monitoring
📖 Documentation
For detailed documentation, see the main repository: https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit
Version: 2.1.0-BETA Repository: https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit Branch: dev
Languages
Shell
100%