MickLesk
52061ea0db
feat(tools.func): add retry logic and debug mode for stability
New helper functions:
- curl_with_retry: Robust curl wrapper with retry logic (3 attempts)
- curl_api_with_retry: API calls with HTTP status handling
- download_gpg_key: GPG key download with retry and dearmor support
- debug_log: Conditional debug output when TOOLS_DEBUG=true
Replaced critical curl calls:
- MongoDB GPG key download
- NodeSource GPG key download
- PostgreSQL GPG key download
- PHP (Sury) keyring download
- MySQL GPG key download
- setup_deb822_repo GPG import
Benefits:
- Automatic retry on transient network failures
- Configurable timeouts (CURL_TIMEOUT, CURL_CONNECT_TO)
- Debug mode for troubleshooting (TOOLS_DEBUG=true)
- Consistent error handling across all GPG key imports
2025-12-26 18:50:56 +01:00
..
2025-12-15 17:37:26 +01:00
2025-12-07 21:29:09 +01:00
2025-12-04 07:52:18 +01:00
2025-12-04 07:52:18 +01:00
2025-12-24 14:23:10 +01:00
2025-12-01 13:49:42 +01:00
2025-12-18 18:38:08 +01:00
2025-12-04 19:41:01 +01:00
2025-12-07 21:29:09 +01:00
2025-12-26 18:50:56 +01:00