39e153b8e1
I assume this is all the metric tracking changes. Looks like some script changes as well.
19 lines
655 B
Bash
Executable File
19 lines
655 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Setup env variables
|
|
source ~/.env
|
|
|
|
# Send updated dynamic IP address to Namecheap, in order to update subdomains.
|
|
# This uses curl (separate pkg) to send the change; Namecheap automatically detects source IP if the ip field (like domain, password) ..
|
|
# is not specified.
|
|
|
|
# info helper
|
|
info() { printf "\n%s %s\n\n" "$( date )" "$*" >&2; }
|
|
|
|
info "Starting IP update for subdomains"
|
|
|
|
echo "https://dynamicdns.park-your-domain.com/update?host=$DYDNS_DOMAIN&domain=$DYDNS_HOST&password=$DYDNS_PASSWORD"
|
|
curl "https://dynamicdns.park-your-domain.com/update?host=$DYDNS_DOMAIN&domain=$DYDNS_HOST&password=$DYDNS_PASSWORD"
|
|
|
|
info "IP update done"
|