Pterodactyl Resources
Pterodactyl Resources
To join our community, please login or register!
Internet Explorer
Internet Explorer is not supported. Please upgrade to a more modern browser.

resources/viewing_release

✨ New Features
πŸš€ Automatic Log Cleanup Before Cloudflared Startup

Logs are now automatically deleted if they exceed 10MB or are older than 30 days:
/home/container/logs/naccess.log
/home/container/logs/nerror.log
/home/container/logs/error.log
/home/container/logs/php_errors.log
/home/container/logs/php-fpm.log
πŸ“Œ Prevents excessive log accumulation and improves disk space management.

🎨 Improved Status Messages & Formatting

Color-coded console output for better readability:
πŸ”΅ Blue β†’ Headers & sections
🟣 Purple β†’ Cleanup processes
🟑 Yellow β†’ Status messages (e.g., "Waiting for Cloudflared to start...")
🟒 Green β†’ Success messages
πŸ”΄ Red β†’ Errors or missing files
πŸ“’ More structured output with section dividers (────────────────────────).

πŸ›  Optimized Cloudflared Startup

Cloudflared startup process improved:
Better error handling:
If Cloudflared fails, the error is displayed immediately.
Last 10 log lines are shown for troubleshooting.
Safer PID file storage.

πŸ› Bug Fixes & Improvements

βœ… Improved Error Handling:
Cloudflared token validation: If missing or empty, a clear error is shown.
Log existence checks: No errors if logs don’t exist.
πŸ— Code Refactoring:
Better script structure with logical sections.
Standardized use of echo -e for consistent formatting.
2 months ago