From 563ded005f4d16a63bb08fa30192cac16fbb4aae Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 25 Jul 2026 01:52:27 -0600 Subject: [PATCH] docs(script): Fix script examples Script examples referenced old log-file switches. --- cfddns.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index 977d987..44c36dd 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -233,16 +233,16 @@ scriptExamples() { textBlockSwitches "${scriptName} -r myserver.mydomain.net --log-journal" textBlock "Same as the first example, but the log will be written to the journal (journald) instead of a log file. A tag of 'CFDDNS' is automatically applied to make filtering easier." newline - textBlockSwitches "${scriptName} -r myserver.mydomain.net,myserver2.mydomain.net -l /var/log/cfddns.log" + textBlockSwitches "${scriptName} -r myserver.mydomain.net,myserver2.mydomain.net --log-file /var/log/cfddns.log" textBlock "Update DNS entries for both listed hosts using the auto-detected IP4 address. Write the log file to the specified location." newline - textBlockSwitches "${scriptName} -r myserver.mydomain.net,myserver2.mydomain.net -l /var/log/cfddns.log --ip6 --ip fd21:7a62:2737:9c3a::a151" + textBlockSwitches "${scriptName} -r myserver.mydomain.net,myserver2.mydomain.net --log-file /var/log/cfddns.log --ip6 --ip fd21:7a62:2737:9c3a::a151" textBlock "Update DNS AAAA entries for listed hosts using the *specified* IP address. Write the log to the location specified." newline - textBlockSwitches "${scriptName} -r myserver.mydomain.net --ip 1.2.3.4 -c /root/cloudflare.creds -l /var/log/cfddns.log --fmt-syslog" + textBlockSwitches "${scriptName} -r myserver.mydomain.net --ip 1.2.3.4 -c /root/cloudflare.creds --log-file /var/log/cfddns.log --fmt-syslog" textBlock "Update DNS A entry for 'myserver.mydomain.net' with the *specified* IP address. Read the Cloudflare credentials file from the specified location. Save a plain-text (syslog-style) log in the specified location." newline - textBlockSwitches "${scriptName} -r myserver.mydomain.net -6 -i fd21:7a62:2737:9c3a::a151 -c /root/cloudflare.creds -l /var/log/cfddns.log --fmt-syslog" + textBlockSwitches "${scriptName} -r myserver.mydomain.net -6 -i fd21:7a62:2737:9c3a::a151 -c /root/cloudflare.creds --log-file /var/log/cfddns.log --fmt-syslog" textBlock "Exact same as above, but change the AAAA record. This is an example of how you run the script once for IP4 and again for IP6." exit 0 }