d994c5c1d74f218d8bbe41b1ca82d8b5e19d0b40
Issue: With 'set -o pipefail', grep commands that find no matches return exit code 1, causing the script to exit unexpectedly in conditional contexts where the grep result should determine the branch taken (if-then-else logic). Fixes applied (11 total): 1. Line 137-140 (is_clamav_installed): rpm | grep for cpanel-clamav 2. Line 594: rpm | grep for cpanel-clamav in cPanel check 3. Line 656: freshclam signature update check 4. Line 752: Maldet signature update check 5. Line 879: ImunifyAV deployment log check 6. Line 886: ImunifyAV error detection check 7. Line 916: ImunifyAV update signature check 8. Line 959: dnf EPEL repo check 9. Line 967: yum EPEL repo check 10. Line 990: RKHunter update definitions check 11. Line 3064: Maldet signature update in dedicated function Solution: Added '|| true' fallback after grep commands in pipes within conditional statements. This allows grep to return 1 (no match) without triggering script exit, enabling proper if-then-else evaluation. Negated grep conditions wrapped in subshells with '|| false' to maintain logic integrity. Status: ✓ Syntax validated, all grep commands now handle empty results gracefully Impact: Prevents unexpected script exits when patterns are not found
🧪 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%