docker compose update mediahost

This commit is contained in:
lucas committed 2026-10-01 14:07:55 +00:00
1 parent 72fe77f040
commit 0e45389c60
27 files changed
+2029

No files matched your search

@@ -0,0 +1,19 @@
#!/bin/bash
# selfHOST DynDNS Update Script
URL='https://549335:GoviYPrfj4XI@carol.selfhost.de/nic/update?myip='
# Get current public IPv4 address
PUBLIC_IP=$(curl -4 -s https://api.ipify.org)
# Exit if IP detection failed
if [ -z "$PUBLIC_IP" ]; then
echo "$(date): Failed to determine public IP"
exit 1
fi
# Send update to selfHOST
RESULT=$(curl -s "${URL}${PUBLIC_IP}")
echo "$(date): IP=${PUBLIC_IP}"