Fix stale script filename references in README
Docs referenced ddns_porkbun.sh / ddns_porkbun_test.sh, which never matched the actual files (porkbun-ddns.sh, porkbun-ddns-test.sh). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
**Fecha:** Abril 2026
|
**Fecha:** Abril 2026
|
||||||
**Servidor:** labmini-01 (Dell Optiplex)
|
**Servidor:** labmini-01 (Dell Optiplex)
|
||||||
**Dominio:** carloselugo.com
|
**Dominio:** carloselugo.com
|
||||||
**Ubicación del script:** `/opt/ddns/ddns_porkbun.sh`
|
**Ubicación del script:** `/opt/ddns/porkbun-ddns.sh`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ Detectar cambios en la IP pública del homelab y actualizar automáticamente los
|
|||||||
|
|
||||||
```
|
```
|
||||||
cron (cada 30 min)
|
cron (cada 30 min)
|
||||||
→ ddns_porkbun.sh
|
→ porkbun-ddns.sh
|
||||||
→ obtiene IP pública (api.ipify.org)
|
→ obtiene IP pública (api.ipify.org)
|
||||||
→ compara con state file (~/.porkbun-ddns.last-ip)
|
→ compara con state file (~/.porkbun-ddns.last-ip)
|
||||||
→ si cambió → Porkbun API (editByNameType)
|
→ si cambió → Porkbun API (editByNameType)
|
||||||
@@ -48,7 +48,7 @@ cron (cada 30 min)
|
|||||||
|
|
||||||
| Archivo | Ruta |
|
| Archivo | Ruta |
|
||||||
|---|---|
|
|---|---|
|
||||||
| Script | `/opt/ddns/ddns_porkbun.sh` |
|
| Script | `/opt/ddns/porkbun-ddns.sh` |
|
||||||
| State file | `/home/netintel/.porkbun-ddns.last-ip` |
|
| State file | `/home/netintel/.porkbun-ddns.last-ip` |
|
||||||
| Log | `/home/netintel/.porkbun-ddns.log` |
|
| Log | `/home/netintel/.porkbun-ddns.log` |
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ POST /dns/editByNameType/carloselugo.com/A/git
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# crontab -e (usuario netintel)
|
# crontab -e (usuario netintel)
|
||||||
*/30 * * * * /opt/ddns/ddns_porkbun.sh
|
*/30 * * * * /opt/ddns/porkbun-ddns.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Corre cada 30 minutos. Solo genera output en el log cuando la IP cambia.
|
Corre cada 30 minutos. Solo genera output en el log cuando la IP cambia.
|
||||||
@@ -124,7 +124,7 @@ Corre cada 30 minutos. Solo genera output en el log cuando la IP cambia.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Correr manualmente
|
# Correr manualmente
|
||||||
/opt/ddns/ddns_porkbun.sh
|
/opt/ddns/porkbun-ddns.sh
|
||||||
|
|
||||||
# Ver log
|
# Ver log
|
||||||
tail -f ~/.porkbun-ddns.log
|
tail -f ~/.porkbun-ddns.log
|
||||||
@@ -133,7 +133,7 @@ tail -f ~/.porkbun-ddns.log
|
|||||||
cat ~/.porkbun-ddns.last-ip
|
cat ~/.porkbun-ddns.last-ip
|
||||||
|
|
||||||
# Forzar una IP específica (solo script de prueba)
|
# Forzar una IP específica (solo script de prueba)
|
||||||
/opt/ddns/ddns_porkbun_test.sh -f 1.2.3.4
|
/opt/ddns/porkbun-ddns-test.sh -f 1.2.3.4
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user