chore: replace wget with curl in various scripts for consistency and reliability
- Updated WafConfig.tsx to correct regex for common bad bots. - Modified cerberus_integration.sh to use curl instead of wget for backend readiness check. - Changed coraza_integration.sh to utilize curl for checking httpbin backend status. - Updated crowdsec_startup_test.sh to use curl for LAPI health check. - Replaced wget with curl in install-go-1.25.5.sh for downloading Go. - Modified rate_limit_integration.sh to use curl for backend readiness check. - Updated waf_integration.sh to replace wget with curl for checking httpbin backend status.
This commit is contained in:
@@ -350,13 +350,13 @@ RUN setcap 'cap_net_bind_service=+ep' /usr/bin/caddy
|
||||
|
||||
**File**: `.docker/docker-entrypoint.sh`
|
||||
|
||||
> **⚠️ CRITICAL**: Debian slim does NOT include `wget`. The entrypoint uses wget for the Caddy readiness check. All `wget` calls must be replaced with `curl` equivalents.
|
||||
> **⚠️ CRITICAL**: Debian slim does NOT include `curl`. The entrypoint uses curl for the Caddy readiness check. All `curl` calls must be replaced with `curl` equivalents.
|
||||
|
||||
#### Step 3.0: Replace wget with curl for Caddy Readiness Check
|
||||
#### Step 3.0: Replace curl with curl for Caddy Readiness Check
|
||||
|
||||
```bash
|
||||
# BEFORE (Alpine - uses wget)
|
||||
wget -q --spider http://localhost:2019/config/ || exit 1
|
||||
# BEFORE (Alpine - uses curl)
|
||||
curl -q --spider http://localhost:2019/config/ || exit 1
|
||||
|
||||
# AFTER (Debian - uses curl)
|
||||
curl -sf http://localhost:2019/config/ > /dev/null || exit 1
|
||||
|
||||
Reference in New Issue
Block a user