Added missing production features to test-launcher.sh:
1. Domain Status Checking:
- Added check_domain_status() function (HTTP/HTTPS curl requests)
- cPanel: Status checks for primary/addon domains only
- Plesk: Status checks for all domains
- Standalone: Status checks for all domains
- Uses 3-second timeouts per request
2. cPanel Additional Domain Sources:
- Added /etc/localdomains check (local domains not in userdata)
- Added /etc/remotedomains check (remote MX domains)
- Wrapped in SYS_CONTROL_PANEL=cpanel conditional
3. Domain Type Detection:
- primary: User's main domain
- addon: Additional domains
- subdomain: Subdomain of primary
- alias: Server alias / www variant
- local: From /etc/localdomains
- remote: From /etc/remotedomains
4. Output Format Matching:
- Changed from 7 fields to 12 fields to match production
- Format: DOMAIN|domain|owner|docroot|logdir|php|is_primary|type|aliases|http|https|status
- Updated sample display to show type and status codes
5. Server Aliases:
- Extract serveralias from cPanel userdata
- Add aliases as separate DOMAIN entries
- Mark as type=alias with parent reference
Testing Results:
✅ cPanel: 1 users, 4 domains, 1 databases (matches production)
✅ Completed in 7s (includes HTTP/HTTPS checks for 4 domains)
✅ Found all domains: pickledperil.com, www, 67-227-141-132.cprapid.com, cloudvpstemplate
✅ Status codes working: 200_OK, TIMEOUT detected correctly
Ready for Plesk server testing.
Created standalone test launcher to verify multi-platform support
before modifying production launcher.sh.
Features:
- Platform-specific domain discovery (cPanel, Plesk, standalone)
- Uses panel-agnostic functions from domain-discovery.sh
- Compares results with production database
- Safe to run without affecting launcher.sh
Test Results on cPanel:
- ✅ Successfully detects platform (cpanel)
- ✅ Finds users (1 user)
- ✅ Finds domains (1 main domain)
- ✅ Finds databases (1 database)
- ✅ Extracts docroot, logs, PHP version correctly
Next: Test on Plesk server to verify Plesk detection works
Documentation:
- FINAL_AUDIT_VERIFIED.md - Complete audit after quad-checking
- CORRECTED_AUDIT_SUMMARY.md - Summary of corrections
- CROSS_PLATFORM_PLAN.md - Implementation roadmap
Usage:
bash test-launcher.sh
Output:
Creates .sysref-test file for inspection
Compares with production .sysref if exists
Shows platform detection and sample domain data
Status: ✅ Ready for Plesk testing